[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Simplify fileURL



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv23189/lib/mixminion

Modified Files:
	test.py 
Log Message:
Simplify fileURL

Index: test.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/test.py,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -d -r1.135 -r1.136
--- test.py	10 Jul 2003 21:16:05 -0000	1.135
+++ test.py	10 Jul 2003 23:11:15 -0000	1.136
@@ -115,12 +115,9 @@
         return abs(f1-f2) < .00001
 
 def fileURL(fname):
+    """DOCDOC"""
     fname = os.path.abspath(fname)
-    if sys.platform == 'win32':
-        drive, path = os.path.splitdrive(fname)
-        return "file:%s" % fname 
-    else:
-        return "file://%s"%fname
+    return "file:%s"%fname
 
 #----------------------------------------------------------------------
 # RSA key caching functionality