diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-05 18:21:49 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-05 18:21:49 +0100 |
commit | 4a67e4e49c4e7b82e416067df69c72656213e886 (patch) | |
tree | f7ab6a08f66768ed7a40f28dba7c3382ef881ecd /git/compat.py | |
parent | 31b3673bdb9d8fb7feea8ae887be455c4a880f76 (diff) | |
download | gitpython-4a67e4e49c4e7b82e416067df69c72656213e886.tar.gz |
test_fun works
Diffstat (limited to 'git/compat.py')
-rw-r--r-- | git/compat.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git/compat.py b/git/compat.py index f11d1423..b9205418 100644 --- a/git/compat.py +++ b/git/compat.py @@ -29,6 +29,8 @@ if PY3: FileType = io.IOBase def byte_ord(b): return b + def bchr(n): + return bytes([n]) else: FileType = file # usually, this is just ascii, which might not enough for our encoding needs @@ -36,6 +38,7 @@ else: if defenc == 'ascii': defenc = 'utf-8' byte_ord = ord + bchr = chr def with_metaclass(meta, *bases): |