|
@@ -48,6 +48,7 @@ except ImportError:
|
|
izip = zip
|
|
izip = zip
|
|
|
|
|
|
import os
|
|
import os
|
|
|
|
+import sys
|
|
|
|
|
|
try:
|
|
try:
|
|
import mmap
|
|
import mmap
|
|
@@ -56,8 +57,8 @@ except ImportError:
|
|
else:
|
|
else:
|
|
has_mmap = True
|
|
has_mmap = True
|
|
|
|
|
|
-# For some reason the above try, except fails to set has_mmap = False
|
|
|
|
-if os.uname()[0] == 'Plan9':
|
|
|
|
|
|
+# For some reason the above try, except fails to set has_mmap = False for plan9
|
|
|
|
+if sys.platform == 'Plan9':
|
|
has_mmap = False
|
|
has_mmap = False
|
|
|
|
|
|
from hashlib import sha1
|
|
from hashlib import sha1
|