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":
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue