fix improt of configparser py33
authorrobin
Wed, 31 Jul 2013 14:43:55 +0100
branchpy33
changeset 3752 b26975887acc
parent 3751 1809185f0a36
child 3753 251e8a89153d
fix improt of configparser
setup.py
--- a/setup.py	Tue Jul 30 17:09:18 2013 +0100
+++ b/setup.py	Wed Jul 31 14:43:55 2013 +0100
@@ -1,7 +1,11 @@
 #Copyright ReportLab Europe Ltd. 2000-2012
 #see license.txt for license details
 __version__=''' $Id$ '''
-import os, sys, glob, configparser, shutil
+import os, sys, glob, shutil
+try:
+    import configparser
+except ImportError:
+    import ConfigParser as configparser
 import functools
 isPython3 = sys.version_info[0]==3
 platform = sys.platform