summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Snapshots.py
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2012-06-05 17:00:40 -0500
committerSol Jerome <sol.jerome@gmail.com>2012-06-05 17:00:40 -0500
commit200f79387247eefa01d60e4f6e573ba5162054bc (patch)
tree489a8c5b3f4682374b565e602d71b2906f77c3f6 /src/lib/Bcfg2/Server/Plugins/Snapshots.py
parentf31d06a61e3a246118bab537923e1039ba3a2571 (diff)
downloadbcfg2-200f79387247eefa01d60e4f6e573ba5162054bc.tar.gz
bcfg2-200f79387247eefa01d60e4f6e573ba5162054bc.tar.bz2
bcfg2-200f79387247eefa01d60e4f6e573ba5162054bc.zip
PY3K: Refactor input code
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Snapshots.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Snapshots.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Snapshots.py b/src/lib/Bcfg2/Server/Plugins/Snapshots.py
index aeb3b9f74..232dbb0c3 100644
--- a/src/lib/Bcfg2/Server/Plugins/Snapshots.py
+++ b/src/lib/Bcfg2/Server/Plugins/Snapshots.py
@@ -14,6 +14,7 @@ import threading
# Compatibility import
from Bcfg2.Bcfg2Py3k import Queue
+from Bcfg2.Bcfg2Py3k import u_str
logger = logging.getLogger('Snapshots')
@@ -28,14 +29,6 @@ datafields = {
}
-# py3k compatibility
-def u_str(string):
- if sys.hexversion >= 0x03000000:
- return string
- else:
- return unicode(string)
-
-
def build_snap_ent(entry):
basefields = []
if entry.tag in ['Package', 'Service']: