diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-09-27 16:05:58 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-09-28 03:35:38 +0200 |
commit | e61439b3018b0b9a8eb43e59d0d7cf32041e2fed (patch) | |
tree | 864b8c57283d3167b192b69bd17e366252ebee15 /git/index/base.py | |
parent | df2fb548040c8313f4bb98870788604bc973fa18 (diff) | |
download | gitpython-e61439b3018b0b9a8eb43e59d0d7cf32041e2fed.tar.gz |
src: constify is_<platform>() calls
+ TCs: unittest-asserts for git-tests.
Diffstat (limited to 'git/index/base.py')
-rw-r--r-- | git/index/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/index/base.py b/git/index/base.py index 82df361f..6656d940 100644 --- a/git/index/base.py +++ b/git/index/base.py @@ -137,7 +137,7 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): # which happens during read-tree. # In this case, we will just read the memory in directly. # Its insanely bad ... I am disappointed ! - allow_mmap = (is_win() or sys.version_info[1] > 5) + allow_mmap = (is_win or sys.version_info[1] > 5) stream = file_contents_ro(fd, stream=True, allow_mmap=allow_mmap) try: |