summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-01-12 08:08:03 +0000
committerAlec Warner <antarus@gentoo.org>2007-01-12 08:08:03 +0000
commitbc5315439918ddbb18b87c780dd61ba1863ae11c (patch)
treebc9b280f56babfcf23776d26a7302285f3ecc6b2 /pym/portage_locks.py
parentBegin the deprecation of the string module (diff)
downloadportage-multirepo-bc5315439918ddbb18b87c780dd61ba1863ae11c.tar.gz
portage-multirepo-bc5315439918ddbb18b87c780dd61ba1863ae11c.tar.bz2
portage-multirepo-bc5315439918ddbb18b87c780dd61ba1863ae11c.zip
more string deprecation
svn path=/main/trunk/; revision=5595
Diffstat (limited to 'pym/portage_locks.py')
-rw-r--r--pym/portage_locks.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pym/portage_locks.py b/pym/portage_locks.py
index e2772956..50ac0917 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):