summaryrefslogtreecommitdiff
path: root/sphinx/directives/code.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-07-23 10:44:36 +0100
committerGeorg Brandl <georg@python.org>2010-07-23 10:44:36 +0100
commite79ffd263d58140380108d24d4b2cf1e2369925b (patch)
treec6f313316b6ad80ab5a060356ee7e140b8a6f420 /sphinx/directives/code.py
parent345f39160a0098b53e09852a14fd49b2626e0d8b (diff)
downloadsphinx-git-e79ffd263d58140380108d24d4b2cf1e2369925b.tar.gz
Do not use normpath when not necessary.
Diffstat (limited to 'sphinx/directives/code.py')
-rw-r--r--sphinx/directives/code.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py
index aff4395fb..0647daf09 100644
--- a/sphinx/directives/code.py
+++ b/sphinx/directives/code.py
@@ -102,7 +102,7 @@ class LiteralInclude(Directive):
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: