[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/apidoc/co I think I
finally got the Windows-compatibility right.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Feb 28 22:03:12 EST 2005
Log message for revision 29355:
I think I finally got the Windows-compatibility right.
Changed:
U Zope3/trunk/src/zope/app/apidoc/codemodule/README.txt
U Zope3/trunk/src/zope/app/apidoc/component.py
-=-
Modified: Zope3/trunk/src/zope/app/apidoc/codemodule/README.txt
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/codemodule/README.txt 2005-03-01 01:42:43 UTC (rev 29354)
+++ Zope3/trunk/src/zope/app/apidoc/codemodule/README.txt 2005-03-01 03:03:12 UTC (rev 29355)
@@ -45,7 +45,7 @@
True
>>> fname = module.getFileName()
- >>> fname = fname.replace('\\\\', '/') # Fix for Windows users
+ >>> fname = fname.replace('\\', '/') # Fix for Windows users
>>> 'zope/app/apidoc/__init__.py' in fname
True
@@ -305,7 +305,7 @@
>>> info = `root.info`
# Windows fix
- >>> info = info.replace('\\\\', '/')
+ >>> info = info.replace('\\', '/')
>>> print info
File
Modified: Zope3/trunk/src/zope/app/apidoc/component.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/component.py 2005-03-01 01:42:43 UTC (rev 29354)
+++ Zope3/trunk/src/zope/app/apidoc/component.py 2005-03-01 03:03:12 UTC (rev 29355)
@@ -142,7 +142,7 @@
def getParserInfoInfoDictionary(info):
"""Return a PT-friendly info dictionary for a parser info object."""
return {'file': relativizePath(info.file),
- 'url': relativizePath(info.file)[10:].replace('\\\\', '/'),
+ 'url': relativizePath(info.file)[10:].replace('\\', '/'),
'line': info.line,
'eline': info.eline,
'column': info.column,
More information about the Zope3-Checkins
mailing list