summaryrefslogtreecommitdiffstats
path: root/pytzdata/_compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'pytzdata/_compat.py')
-rw-r--r--pytzdata/_compat.py11
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