Commits

Georg Brandl committed 006a4d4

Do not use normpath when not necessary.

Comments (0)

Files changed (1)

sphinx/directives/code.py

             rel_fn = filename[1:]
         else:
             docdir = path.dirname(env.doc2path(env.docname, base=None))
-            rel_fn = path.normpath(path.join(docdir, filename))
+            rel_fn = path.join(docdir, filename)
         try:
             fn = path.join(env.srcdir, rel_fn)
         except UnicodeDecodeError: