FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove unnecessary check for sys.getfilesystemencoding · CoderboticsAI/GitPython@d01f072 · GitHub

Repository navigation

Commit d01f072

Browse files
authored andcommitted
Remove unnecessary check for sys.getfilesystemencoding
1 parent f2ce56f commit d01f072

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎git/compat.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@
3030
is_win = (os.name == 'nt')
3131
is_posix = (os.name == 'posix')
3232
is_darwin = (os.name == 'darwin')
33-
if hasattr(sys, 'getfilesystemencoding'):
34-
defenc = sys.getfilesystemencoding()
35-
if defenc is None:
36-
defenc = sys.getdefaultencoding()
33+
defenc = sys.getfilesystemencoding()
3734

3835
if PY3:
3936
import io

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL