From 477a4028eb8ba34e0a453125fd39120d23bdeb6e Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Wed, 4 Apr 2012 09:22:36 -0500 Subject: Remove fprint in favor of cleaner setup.py We only used the new fancy file printing function in one place, but it caused massive ugliness in setup.py. Easier to use file.write() for now. Signed-off-by: Sol Jerome --- src/lib/Bcfg2/Bcfg2Py3k.py | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/lib/Bcfg2/Bcfg2Py3k.py') diff --git a/src/lib/Bcfg2/Bcfg2Py3k.py b/src/lib/Bcfg2/Bcfg2Py3k.py index ee05b7e41..6af8b3e5c 100644 --- a/src/lib/Bcfg2/Bcfg2Py3k.py +++ b/src/lib/Bcfg2/Bcfg2Py3k.py @@ -75,17 +75,6 @@ def u_str(string, encoding=None): else: return unicode(string) -""" -In order to use the new syntax for printing to a file, we need to do -a conditional import because there is a syntax incompatibility between -the two versions of python. -""" -if sys.hexversion >= 0x03000000: - from Bcfg2.Bcfg2Py3Incompat import fprint -else: - def fprint(s, f): - print >> f, s - if sys.hexversion >= 0x03000000: from io import FileIO as file else: -- cgit v1.2.3-1-g7c22