summarylogtreecommitdiffstats
path: root/python3-compat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'python3-compat.patch')
-rw-r--r--python3-compat.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/python3-compat.patch b/python3-compat.patch
new file mode 100644
index 000000000000..fd4bb45253e8
--- /dev/null
+++ b/python3-compat.patch
@@ -0,0 +1,15 @@
+--- habitica/habitica/core.py 2016-01-17 18:01:28.432752091 -0500
++++ habitica/habitica/core.py 2016-01-17 18:08:45.399967234 -0500
+@@ -13,7 +13,11 @@
+
+
+ from bisect import bisect
+-import ConfigParser
++import sys
++if sys.version < '3':
++ import ConfigParser
++else:
++ import configparser as ConfigParser
+ import json
+ import logging
+ import netrc