We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f66e25 commit 3953d71Copy full SHA for 3953d71
git/compat.py
@@ -30,7 +30,10 @@
30
is_win= (os.name=='nt')
31
is_posix= (os.name=='posix')
32
is_darwin= (os.name=='darwin')
33
-defenc=sys.getdefaultencoding()
+ifhasattr(sys, 'getfilesystemencoding'):
34
+defenc=sys.getfilesystemencoding()
35
+ifdefencisNone:
36
+defenc=sys.getdefaultencoding()
37
38
ifPY3:
39
importio
git/repo/base.py
@@ -4,6 +4,7 @@
4
# This module is part of GitPython and is released under
5
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
6
7
+frombuiltinsimportstr
8
fromcollectionsimportnamedtuple
9
importlogging
10
importos
0 commit comments