client/rhel/rhnlib/rhn/rpclib.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit a45a2d346d341efd37d46eb969594f359ab29dcb
Author: Justin Sherrill <jsherril(a)redhat.com>
Date: Wed Mar 23 16:43:52 2011 -0400
string does not exist, str is the correct thing to use here...
diff --git a/client/rhel/rhnlib/rhn/rpclib.py b/client/rhel/rhnlib/rhn/rpclib.py
index b2f4774..13e6d79 100644
--- a/client/rhel/rhnlib/rhn/rpclib.py
+++ b/client/rhel/rhnlib/rhn/rpclib.py
@@ -541,9 +541,9 @@ class Server:
r"^(?P<name>[^(]*)\((?P<version>[^)]*)\)\s*=\s*(?P<value>.*)$")
vals = {}
for h in cap_headers:
- arr = string.split(h, ':', 1)
+ arr = str.split(h, ':', 1)
assert len(arr) == 2
- val = string.strip(arr[1])
+ val = str.strip(arr[1])
if not val:
continue
@@ -553,7 +553,7 @@ class Server:
continue
vdict = mo.groupdict()
for k, v in vdict.items():
- vdict[k] = string.strip(v)
+ vdict[k] = str.strip(v)
vals[vdict['name']] = vdict
return vals
Show replies by date