Dulwich.io dulwich / 23eaa91
Explicitly disable mmap on plan9 where it doesn't work. Patch from Jeff Sickel. Jelmer Vernooij 4 years ago
2 changed file(s) with 10 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2121
2222 * Fix handling of tags of non-commits in missing object finder.
2323 (Augie Fackler, #211)
24
25 * Explicitly disable mmap on plan9 where it doesn't work.
26 (Jeff Sickel)
2427
2528 IMPROVEMENTS
2629
4646 imap = map
4747 izip = zip
4848
49 import os
50
4951 try:
5052 import mmap
5153 except ImportError:
5254 has_mmap = False
5355 else:
5456 has_mmap = True
57
58 # For some reason the above try, except fails to set has_mmap = False
59 if os.uname()[0] == 'Plan9':
60 has_mmap = False
61
5562 from hashlib import sha1
56 import os
5763 from os import (
5864 SEEK_CUR,
5965 SEEK_END,