Skip to content

Commit a10ceef

Browse files
Harmon758Byron
authored andcommitted
Remove and replace compat.MAXSIZE
1 parent cedd332 commit a10ceef

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

Diff for: git/compat.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414

1515
from gitdb.utils.compat import (
16-
MAXSIZE, # @UnusedImport
1716
izip, # @UnusedImport
1817
)
1918
from gitdb.utils.encoding import (

Diff for: git/util.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import re
1414
import shutil
1515
import stat
16+
from sys import maxsize
1617
import time
1718
from unittest import SkipTest
1819

@@ -31,10 +32,7 @@
3132
from git.compat import is_win
3233
import os.path as osp
3334

34-
from .compat import (
35-
MAXSIZE,
36-
defenc
37-
)
35+
from .compat import defenc
3836
from .exc import InvalidGitRepositoryError
3937

4038

@@ -783,7 +781,7 @@ class BlockingLockFile(LockFile):
783781
can never be obtained."""
784782
__slots__ = ("_check_interval", "_max_block_time")
785783

786-
def __init__(self, file_path, check_interval_s=0.3, max_block_time_s=MAXSIZE):
784+
def __init__(self, file_path, check_interval_s=0.3, max_block_time_s=maxsize):
787785
"""Configure the instance
788786
789787
:param check_interval_s:

0 commit comments

Comments
 (0)