[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r9396 - trunk/gnue-common/src/utils
From: |
johannes |
Subject: |
[gnue] r9396 - trunk/gnue-common/src/utils |
Date: |
Thu, 22 Feb 2007 02:10:03 -0600 (CST) |
Author: johannes
Date: 2007-02-22 02:10:02 -0600 (Thu, 22 Feb 2007)
New Revision: 9396
Modified:
trunk/gnue-common/src/utils/FileUtils.py
Log:
Proper use of the split() method
Modified: trunk/gnue-common/src/utils/FileUtils.py
===================================================================
--- trunk/gnue-common/src/utils/FileUtils.py 2007-02-22 01:38:13 UTC (rev
9395)
+++ trunk/gnue-common/src/utils/FileUtils.py 2007-02-22 08:10:02 UTC (rev
9396)
@@ -38,7 +38,7 @@
def dyn_import(name):
try:
mod = __import__(name)
- components = '.'.split(name)
+ components = name.split('.')
for comp in components[1:]:
mod = getattr(mod, comp)
return mod
@@ -99,7 +99,7 @@
# fix for a bug in URLPARSE
if host=="":
# path="//host/path" -> path=path host=host
- host, path ="/".split(path[2:],1)
+ host, path = path[2:].split('/', 1)
# check if host ends in ".gear"
if host[-5:]!=".gear":
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r9396 - trunk/gnue-common/src/utils,
johannes <=