diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-02-07 07:34:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-02-07 07:50:21 +0000 |
commit | fe534d5229de5e83dccdfa3e4ba3c1b29bd38a71 (patch) | |
tree | b6c5cd613e258116b1f732732c78f87b3d5f6e50 /pytzdata/_compat.py | |
parent | Initial commit. (diff) | |
download | pytzdata-fe534d5229de5e83dccdfa3e4ba3c1b29bd38a71.tar.xz pytzdata-fe534d5229de5e83dccdfa3e4ba3c1b29bd38a71.zip |
Adding upstream version 2020.1+dfsg.upstream/2010.1+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pytzdata/_compat.py')
-rw-r--r-- | pytzdata/_compat.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pytzdata/_compat.py b/pytzdata/_compat.py new file mode 100644 index 0000000..0fee1d7 --- /dev/null +++ b/pytzdata/_compat.py @@ -0,0 +1,11 @@ +# -*- coding: utf-8 -*- + +import sys + +PY33 = sys.version_info >= (3, 3) + + +if PY33: + FileNotFoundError = FileNotFoundError +else: + FileNotFoundError = IOError # cf PEP-3151 |