summaryrefslogtreecommitdiff
path: root/sphinx/util/osutil.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-01-12 12:54:02 +0900
committerGitHub <noreply@github.com>2017-01-12 12:54:02 +0900
commit478306e052d9711170b1fbe63635edef02853484 (patch)
tree502a9e495cef7d748a5a439de35bdb4647f5f138 /sphinx/util/osutil.py
parentd170862866a576cf342d27074d009e869e3670c4 (diff)
parent76ecccf8af86568cde5310638b4ac21c1aee0042 (diff)
downloadsphinx-git-478306e052d9711170b1fbe63635edef02853484.tar.gz
Merge pull request #3327 from tk0miya/flake8
Update flake8 rules
Diffstat (limited to 'sphinx/util/osutil.py')
-rw-r--r--sphinx/util/osutil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/osutil.py b/sphinx/util/osutil.py
index b8fffb220..6368384e8 100644
--- a/sphinx/util/osutil.py
+++ b/sphinx/util/osutil.py
@@ -27,7 +27,7 @@ from six import PY2, text_type
# Errnos that we need.
EEXIST = getattr(errno, 'EEXIST', 0)
ENOENT = getattr(errno, 'ENOENT', 0)
-EPIPE = getattr(errno, 'EPIPE', 0)
+EPIPE = getattr(errno, 'EPIPE', 0)
EINVAL = getattr(errno, 'EINVAL', 0)
# SEP separates path elements in the canonical file names
@@ -67,7 +67,7 @@ def relative_uri(base, to):
# Special case: relative_uri('f/index.html','f/') should
# return './', not ''
return '.' + SEP
- return ('..' + SEP) * (len(b2)-1) + SEP.join(t2)
+ return ('..' + SEP) * (len(b2) - 1) + SEP.join(t2)
def ensuredir(path):