Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-15 14:38:46 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-19 13:26:50 +0300
commitd0f5862597c1b4fd5210433a323be6b21d99d1ee (patch)
tree44c13629c970e84c24bb9413d728a8ed75a487c1 /sphinx/versioning.py
parent3905cb8b7cb92815a6ee41a7d25ad2eaa5b8a443 (diff)
Replace EnvironmentError and IOError by OSError
Since python 3.3, EnvironmentError and IOError were merged into OSError.
Diffstat (limited to 'sphinx/versioning.py')
-rw-r--r--sphinx/versioning.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/versioning.py b/sphinx/versioning.py
index a1716e835..d39c9538e 100644
--- a/sphinx/versioning.py
+++ b/sphinx/versioning.py
@@ -169,7 +169,7 @@ class UIDTransform(SphinxTransform):
filename = path.join(env.doctreedir, env.docname + '.doctree')
with open(filename, 'rb') as f:
old_doctree = pickle.load(f)
- except EnvironmentError:
+ except OSError:
pass
# add uids for versioning