Skip to content

Commit ef3b36e

Browse files
committed
_need_compat_layer is not required in python 3.
Signed-off-by: David Black <dblack@atlassian.com>
1 parent 575f4a8 commit ef3b36e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

smmap/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class MapRegion(object):
104104
'_size', # cached size of our memory map
105105
'__weakref__'
106106
]
107-
_need_compat_layer = sys.version_info[1] < 6
107+
_need_compat_layer = sys.version_info[0] < 3 and sys.version_info[1] < 6
108108

109109
if _need_compat_layer:
110110
__slots__.append('_mfb') # mapped memory buffer to provide offset

0 commit comments

Comments
 (0)