| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,10 @@ | |||
| 30 | 30 | is_win = (os.name == 'nt') | |
| 31 | 31 | is_posix = (os.name == 'posix') | |
| 32 | 32 | is_darwin = (os.name == 'darwin') | |
| 33 | - defenc = sys.getdefaultencoding() | ||
| 33 | + if hasattr(sys, 'getfilesystemencoding'): | ||
| 34 | + defenc = sys.getfilesystemencoding() | ||
| 35 | + if defenc is None: | ||
| 36 | + defenc = sys.getdefaultencoding() | ||
| 34 | 37 | ||
| 35 | 38 | if PY3: | |
| 36 | 39 | import io | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,6 +4,7 @@ | |||
| 4 | 4 | # This module is part of GitPython and is released under | |
| 5 | 5 | # the BSD License: http://www.opensource.org/licenses/bsd-license.php | |
| 6 | 6 | ||
| 7 | + from builtins import str | ||
| 7 | 8 | from collections import namedtuple | |
| 8 | 9 | import logging | |
| 9 | 10 | import os | |
| Back | FazBrowse Home | New Git URL |
0 commit comments