gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/metacode mputils.py


From: Asko Soukka
Subject: [Gzz-commits] gzz/metacode mputils.py
Date: Mon, 10 Feb 2003 09:07:43 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Asko Soukka <address@hidden>    03/02/10 09:07:43

Modified files:
        metacode       : mputils.py 

Log message:
        title-path fix

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/metacode/mputils.py.diff?tr1=1.13&tr2=1.14&r1=text&r2=text

Patches:
Index: gzz/metacode/mputils.py
diff -u gzz/metacode/mputils.py:1.13 gzz/metacode/mputils.py:1.14
--- gzz/metacode/mputils.py:1.13        Mon Feb 10 08:54:13 2003
+++ gzz/metacode/mputils.py     Mon Feb 10 09:07:43 2003
@@ -89,13 +89,14 @@
     The current implementation sucks, so why wouldn't use
     something ready and working :)
     """
-    #terrible kludge to avoid java.lang.NegativeArraySizeException with Jython
     from_path = os.path.normpath(os.path.abspath(from_path))
     to_path = os.path.normpath(os.path.abspath(to_path))
-#    print "from:", from_path, "to:", to_path+"/foo"
+#   print "from:", from_path, "to:", to_path+"/foo"
+#   terrible kludge to avoid java.lang.NegativeArraySizeException with Jython
     transition = docutils.utils.relative_path(from_path+"/foo", to_path)
-    transition = transition[3:len(transition)]
-#    print "transition:", transition
+    if transition.startswith("../"):
+        transition = transition[3:len(transition)]
+#   print "transition:", transition
     return transition
 
     """




reply via email to

[Prev in Thread] Current Thread [Next in Thread]