diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-06 10:43:25 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-06 10:43:25 +0100 |
commit | 45c1c99a22e95d730d3096c339d97181d314d6ca (patch) | |
tree | d25ccc9b7d37fa7bc5a76c995e525ae137110a42 /git/compat.py | |
parent | 7297ff651c3cc6abf648b3fe730c2b5b1f3edbd3 (diff) | |
download | gitpython-45c1c99a22e95d730d3096c339d97181d314d6ca.tar.gz |
test_index works
Diffstat (limited to 'git/compat.py')
-rw-r--r-- | git/compat.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/git/compat.py b/git/compat.py index b9205418..5c330e5b 100644 --- a/git/compat.py +++ b/git/compat.py @@ -31,6 +31,8 @@ if PY3: return b def bchr(n): return bytes([n]) + def mviter(d): + return d.values() else: FileType = file # usually, this is just ascii, which might not enough for our encoding needs @@ -39,6 +41,8 @@ else: defenc = 'utf-8' byte_ord = ord bchr = chr + def mviter(d): + return d.itervalues() def with_metaclass(meta, *bases): |