diff options
Diffstat (limited to 'project.py')
| -rw-r--r-- | project.py | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -36,10 +36,11 @@ from trace import IsTrace, Trace | |||
| 36 | 36 | ||
| 37 | from git_refs import GitRefs, HEAD, R_HEADS, R_TAGS, R_PUB, R_M | 37 | from git_refs import GitRefs, HEAD, R_HEADS, R_TAGS, R_PUB, R_M |
| 38 | 38 | ||
| 39 | try: | 39 | from pyversion import is_python3 |
| 40 | if not is_python3(): | ||
| 41 | # pylint:disable=W0622 | ||
| 40 | input = raw_input | 42 | input = raw_input |
| 41 | except NameError: | 43 | # pylint:enable=W0622 |
| 42 | pass | ||
| 43 | 44 | ||
| 44 | def _lwrite(path, content): | 45 | def _lwrite(path, content): |
| 45 | lock = '%s.lock' % path | 46 | lock = '%s.lock' % path |
