git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
the hardware_types in a node rspec is now built by
[sfa.git]
/
sfa
/
util
/
py23.py
diff --git
a/sfa/util/py23.py
b/sfa/util/py23.py
index
c1a0ec8
..
7cd55cd
100644
(file)
--- a/
sfa/util/py23.py
+++ b/
sfa/util/py23.py
@@
-1,4
+1,7
@@
# our own simplistic replacement for six
+import sys
+PY3 = sys.version_info[0] == 3
+
try:
StringType = basestring
except:
@@
-18,7
+21,7
@@
try:
import httplib as http_client
except:
from http import client as http_client
-
+
try:
import ConfigParser
except: