Skip to content

Commit 6735dec

Browse files
committed
Refactor __init__ to
1 parent 8d92aba commit 6735dec

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

gitdb/stream.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
import sys
1111
import zlib
1212

13+
from gitdb.const import NULL_BYTE, BYTE_SPACE
14+
from gitdb.utils.encoding import force_bytes
15+
from mmap import mmap
16+
from zlib import decompressobj
17+
1318
from gitdb.fun import (
1419
msb_size,
1520
stream_copy,
@@ -26,9 +31,6 @@
2631
close,
2732
)
2833

29-
from gitdb.const import NULL_BYTE, BYTE_SPACE
30-
from gitdb.utils.encoding import force_bytes
31-
3234
has_perf_mod = False
3335
try:
3436
from gitdb_speedups._perf import apply_delta as c_apply_delta

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
smmap>=3.0.1,<6
1+
smmap>=5.0.0,<6

0 commit comments

Comments
 (0)