diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-09-27 17:09:41 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-09-28 03:35:38 +0200 |
commit | 4cede2368aa980e30340f0ed0a1906d65fe1046c (patch) | |
tree | e541497eea1299f461daec74124787d6c8e76d26 /git/compat.py | |
parent | e61439b3018b0b9a8eb43e59d0d7cf32041e2fed (diff) | |
download | gitpython-4cede2368aa980e30340f0ed0a1906d65fe1046c.tar.gz |
Win, #519: Ensure fixtures & bashscript checked-out eol=lf
+ FIX all Diff TCs.
Diffstat (limited to 'git/compat.py')
-rw-r--r-- | git/compat.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/compat.py b/git/compat.py index dced3a5f..cbfb5785 100644 --- a/git/compat.py +++ b/git/compat.py @@ -88,9 +88,9 @@ class UnicodeMixin(object): """Mixin class to handle defining the proper __str__/__unicode__ methods in Python 2 or 3.""" - if sys.version_info[0] >= 3: # Python 3 + if PY3: def __str__(self): return self.__unicode__() else: # Python 2 def __str__(self): - return self.__unicode__().encode('utf8') + return self.__unicode__().encode(defenc) |