We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18bdab2 commit ae5b9a2Copy full SHA for ae5b9a2
gitdb/util.py
@@ -11,22 +11,15 @@
11
import os
12
import shutil
13
import stat
14
-import sys
15
16
from smmap import (
17
- StaticWindowMapManager,
18
SlidingWindowMapManager,
19
SlidingWindowMapBuffer
20
)
21
22
-
23
-# initialize our global memory manager instance
24
-# Use it to free cached (and unused) resources.
25
-if sys.version_info < (2, 6):
26
- mman = StaticWindowMapManager()
27
-else:
28
- mman = SlidingWindowMapManager()
29
-# END handle mman
+#: The "global" memmap-manager; remember to `mman.collect()` it,
+# to clean up resources and files.
+mman = SlidingWindowMapManager()
30
31
#{ Aliases
32
0 commit comments