summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Black <dblack@atlassian.com>2014-05-16 16:36:47 +1000
committerDavid Black <dblack@atlassian.com>2014-05-16 16:36:47 +1000
commitef3b36e6ae20e7bd6c31c71623a5e0019ba9eec9 (patch)
treeefce00ce5ce239d715ab59f2fb9b9b131bbed573
parent575f4a895ea525ecfedbfc1dc4c6f032ad92ccdc (diff)
downloadsmmap-ef3b36e6ae20e7bd6c31c71623a5e0019ba9eec9.tar.gz
_need_compat_layer is not required in python 3.
Signed-off-by: David Black <dblack@atlassian.com>
-rw-r--r--smmap/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/smmap/util.py b/smmap/util.py
index fee9ad5..f4ecd22 100644
--- a/smmap/util.py
+++ b/smmap/util.py
@@ -104,7 +104,7 @@ class MapRegion(object):
'_size', # cached size of our memory map
'__weakref__'
]
- _need_compat_layer = sys.version_info[1] < 6
+ _need_compat_layer = sys.version_info[0] < 3 and sys.version_info[1] < 6
if _need_compat_layer:
__slots__.append('_mfb') # mapped memory buffer to provide offset