Commits

Jannis Leidel committed 684213a

Fixed #60 -- Bug introduced in 1604fa25d276 that raises an AssertionError on Windows.

Comments (0)

Files changed (1)

     for src_prefix in prefixes:
         if filename.startswith(src_prefix):
             _, relpath = filename.split(src_prefix, 1)
-            assert relpath[0] == '/'
+            assert relpath[0] == os.sep
             relpath = relpath[1:]
             return join(dst_prefix, relpath)
     assert False, "Filename %s does not start with any of these prefixes: %s" % \