summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/project.py b/project.py
index 4bc54de9..b61bcacb 100644
--- a/project.py
+++ b/project.py
@@ -29,6 +29,11 @@ try:
29except ImportError: 29except ImportError:
30 import dummy_threading as _threading 30 import dummy_threading as _threading
31 31
32try:
33 from os import SEEK_END
34except ImportError:
35 SEEK_END = 2
36
32from color import Coloring 37from color import Coloring
33from git_command import GitCommand 38from git_command import GitCommand
34from git_config import GitConfig, IsId, GetSchemeFromUrl 39from git_config import GitConfig, IsId, GetSchemeFromUrl
@@ -1462,7 +1467,7 @@ class Project(object):
1462 done = False 1467 done = False
1463 dest = open(tmpPath, 'a+b') 1468 dest = open(tmpPath, 'a+b')
1464 try: 1469 try:
1465 dest.seek(0, os.SEEK_END) 1470 dest.seek(0, SEEK_END)
1466 pos = dest.tell() 1471 pos = dest.tell()
1467 1472
1468 _urllib_lock.acquire() 1473 _urllib_lock.acquire()