Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5f74ebc

Browse files
committed
Fix some PEP 8 violations.
1 parent 711d25d commit 5f74ebc

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

Lib/os.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -876,8 +876,7 @@ def _fscodec():
876876
errors = 'surrogateescape'
877877

878878
def fsencode(filename):
879-
"""
880-
Encode filename (an os.PathLike, bytes, or str) to the filesystem
879+
"""Encode filename (an os.PathLike, bytes, or str) to the filesystem
881880
encoding with 'surrogateescape' error handler, return bytes unchanged.
882881
On Windows, use 'strict' error handler if the file system encoding is
883882
'mbcs' (which is the default encoding).
@@ -892,8 +891,7 @@ def fsencode(filename):
892891
+ type(filename).__name__)
893892

894893
def fsdecode(filename):
895-
"""
896-
Decode filename (an os.PathLike, bytes, or str) from the filesystem
894+
"""Decode filename (an os.PathLike, bytes, or str) from the filesystem
897895
encoding with 'surrogateescape' error handler, return str unchanged. On
898896
Windows, use 'strict' error handler if the file system encoding is
899897
'mbcs' (which is the default encoding).
@@ -1127,14 +1125,12 @@ def fspath(path):
11271125
+ path_type.__name__)
11281126

11291127
class PathLike(abc.ABC):
1130-
"""
1131-
Abstract base class for implementing the file system path protocol.
1132-
"""
1128+
1129+
"""Abstract base class for implementing the file system path protocol."""
1130+
11331131
@abc.abstractmethod
11341132
def __fspath__(self):
1135-
"""
1136-
Return the file system path representation of the object.
1137-
"""
1133+
"""Return the file system path representation of the object."""
11381134
raise NotImplementedError
11391135

11401136
@classmethod

0 commit comments

Comments
 (0)