Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
5f74ebc2
Kaydet (Commit)
5f74ebc2
authored
Haz 09, 2016
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix some PEP 8 violations.
üst
711d25db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
os.py
Lib/os.py
+6
-10
No files found.
Lib/os.py
Dosyayı görüntüle @
5f74ebc2
...
...
@@ -876,8 +876,7 @@ def _fscodec():
errors
=
'surrogateescape'
def
fsencode
(
filename
):
"""
Encode filename (an os.PathLike, bytes, or str) to the filesystem
"""Encode filename (an os.PathLike, bytes, or str) to the filesystem
encoding with 'surrogateescape' error handler, return bytes unchanged.
On Windows, use 'strict' error handler if the file system encoding is
'mbcs' (which is the default encoding).
...
...
@@ -892,8 +891,7 @@ def _fscodec():
+
type
(
filename
)
.
__name__
)
def
fsdecode
(
filename
):
"""
Decode filename (an os.PathLike, bytes, or str) from the filesystem
"""Decode filename (an os.PathLike, bytes, or str) from the filesystem
encoding with 'surrogateescape' error handler, return str unchanged. On
Windows, use 'strict' error handler if the file system encoding is
'mbcs' (which is the default encoding).
...
...
@@ -1127,14 +1125,12 @@ if not _exists('fspath'):
+
path_type
.
__name__
)
class
PathLike
(
abc
.
ABC
):
"""
Abstract base class for implementing the file system path protocol.
"""
"""Abstract base class for implementing the file system path protocol."""
@abc.abstractmethod
def
__fspath__
(
self
):
"""
Return the file system path representation of the object.
"""
"""Return the file system path representation of the object."""
raise
NotImplementedError
@classmethod
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment