[pypy-commit] pypy default: Windows fix.

arigo noreply at buildbot.pypy.org
Sat Mar 31 12:31:44 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r54106:39ba7e60ebca
Date: 2012-03-31 12:30 +0200
http://bitbucket.org/pypy/pypy/changeset/39ba7e60ebca/

Log:	Windows fix.

diff --git a/dotviewer/graphparse.py b/dotviewer/graphparse.py
--- a/dotviewer/graphparse.py
+++ b/dotviewer/graphparse.py
@@ -93,6 +93,7 @@
     return result
 
 def parse_plain(graph_id, plaincontent, links={}, fixedfont=False):
+    plaincontent = plaincontent.replace('\r\n', '\n')    # fix Windows EOL
     lines = plaincontent.splitlines(True)
     for i in range(len(lines)-2, -1, -1):
         if lines[i].endswith('\\\n'):   # line ending in '\'


More information about the pypy-commit mailing list