summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-02-20 08:45:44 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-02-20 08:45:44 -0500
commite17e41dcff096ead7e129a0db063f75de44aaa2b (patch)
tree5298825c42d3290c6e2eaeba103c1fb2836e8aa7 /src
parentbe0de88922a58504c655361970378375426b5acc (diff)
downloadbcfg2-e17e41dcff096ead7e129a0db063f75de44aaa2b.tar.gz
bcfg2-e17e41dcff096ead7e129a0db063f75de44aaa2b.tar.bz2
bcfg2-e17e41dcff096ead7e129a0db063f75de44aaa2b.zip
fixed unit tests using long ints for py3k
Diffstat (limited to 'src')
-rw-r--r--src/lib/Bcfg2/Compat.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Compat.py b/src/lib/Bcfg2/Compat.py
index b0f0ef5cf..beb534791 100644
--- a/src/lib/Bcfg2/Compat.py
+++ b/src/lib/Bcfg2/Compat.py
@@ -260,3 +260,10 @@ def oct_mode(mode):
:type mode: int
:returns: string """
return oct(mode).replace('o', '')
+
+
+try:
+ long = long
+except NameError:
+ # longs are just ints in py3k
+ long = int