diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-21 12:44:37 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-21 12:44:37 +0000 |
commit | c581522b4fcac9edae8e494e213c654612ad4490 (patch) | |
tree | f40c59286e998cdf8e42747ac2da442ce4b1fab7 /pym/portage/locks.py | |
parent | Fix all remaining SyntaxErrors with Python 3. (diff) | |
download | portage-c581522b4fcac9edae8e494e213c654612ad4490.tar.gz portage-c581522b4fcac9edae8e494e213c654612ad4490.tar.bz2 portage-c581522b4fcac9edae8e494e213c654612ad4490.zip |
Define basestring as str when Python 3 is used.
svn path=/main/trunk/; revision=14316
Diffstat (limited to 'pym/portage/locks.py')
-rw-r--r-- | pym/portage/locks.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/locks.py b/pym/portage/locks.py index 896f948f1..cdbbf03c3 100644 --- a/pym/portage/locks.py +++ b/pym/portage/locks.py @@ -9,6 +9,7 @@ __all__ = ["lockdir", "unlockdir", "lockfile", "unlockfile", \ import errno import stat +import sys import time from portage import os from portage.exception import DirectoryNotFound, FileNotFound, \ @@ -18,6 +19,9 @@ from portage.output import EOutput from portage.util import writemsg from portage.localization import _ +if sys.hexversion >= 0x3000000: + basestring = str + HARDLINK_FD = -2 # Used by emerge in order to disable the "waiting for lock" message |