diff options
| author | Shawn O. Pearce <sop@google.com> | 2011-10-11 14:05:21 -0700 |
|---|---|---|
| committer | Shawn O. Pearce <sop@google.com> | 2011-10-11 14:06:11 -0700 |
| commit | df5ee52050a5b8ea4e0bb69c007dac556c18ec03 (patch) | |
| tree | 760f85dcd1039e3ba6110d39cc041c664730e7cb /project.py | |
| parent | fab96c68e3acfb5403ffe65577563f3cb39e2530 (diff) | |
| download | git-repo-df5ee52050a5b8ea4e0bb69c007dac556c18ec03.tar.gz | |
Fix Python 2.4 support
Change-Id: I89521ae52fa564f0d849cc51e71fee65b3c47bab
Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'project.py')
| -rw-r--r-- | project.py | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -29,6 +29,11 @@ try: | |||
| 29 | except ImportError: | 29 | except ImportError: |
| 30 | import dummy_threading as _threading | 30 | import dummy_threading as _threading |
| 31 | 31 | ||
| 32 | try: | ||
| 33 | from os import SEEK_END | ||
| 34 | except ImportError: | ||
| 35 | SEEK_END = 2 | ||
| 36 | |||
| 32 | from color import Coloring | 37 | from color import Coloring |
| 33 | from git_command import GitCommand | 38 | from git_command import GitCommand |
| 34 | from git_config import GitConfig, IsId, GetSchemeFromUrl | 39 | from 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() |
