diff options
author | Alec Warner <antarus@gentoo.org> | 2007-01-12 08:08:03 +0000 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2007-01-12 08:08:03 +0000 |
commit | bc5315439918ddbb18b87c780dd61ba1863ae11c (patch) | |
tree | bc9b280f56babfcf23776d26a7302285f3ecc6b2 /pym/portage_locks.py | |
parent | b123507d4ab48295c5726d8fdda29cbe4a72476a (diff) | |
download | portage-bc5315439918ddbb18b87c780dd61ba1863ae11c.tar.gz portage-bc5315439918ddbb18b87c780dd61ba1863ae11c.tar.bz2 portage-bc5315439918ddbb18b87c780dd61ba1863ae11c.zip |
more string deprecation
svn path=/main/trunk/; revision=5595
Diffstat (limited to 'pym/portage_locks.py')
-rw-r--r-- | pym/portage_locks.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pym/portage_locks.py b/pym/portage_locks.py index e2772956f..50ac09178 100644 --- a/pym/portage_locks.py +++ b/pym/portage_locks.py @@ -7,7 +7,6 @@ import errno import os import stat -import string import time import types import portage_exception @@ -264,11 +263,11 @@ def hardlock_cleanup(path, remove_all_locks=False): mylist = {} for x in mydl: if os.path.isfile(path+"/"+x): - parts = string.split(x, ".hardlock-") + parts = x.split(".hardlock-") if len(parts) == 2: filename = parts[0] - hostpid = string.split(parts[1],"-") - host = string.join(hostpid[:-1], "-") + hostpid = parts[1].split("-") + host = "-".join(hostpid[:-1]) pid = hostpid[-1] if not mylist.has_key(filename): |