diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2012-04-04 09:22:36 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2012-04-04 09:22:36 -0500 |
commit | 477a4028eb8ba34e0a453125fd39120d23bdeb6e (patch) | |
tree | b4056c573eb78461575b01397c22c5e532714439 /src/lib/Bcfg2/Component.py | |
parent | ea5edd121a999cf3068ee41fd5fa4a7d0e3a1636 (diff) | |
download | bcfg2-477a4028eb8ba34e0a453125fd39120d23bdeb6e.tar.gz bcfg2-477a4028eb8ba34e0a453125fd39120d23bdeb6e.tar.bz2 bcfg2-477a4028eb8ba34e0a453125fd39120d23bdeb6e.zip |
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 <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Bcfg2/Component.py')
-rw-r--r-- | src/lib/Bcfg2/Component.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Component.py b/src/lib/Bcfg2/Component.py index e21b5d359..eb9ea166a 100644 --- a/src/lib/Bcfg2/Component.py +++ b/src/lib/Bcfg2/Component.py @@ -14,7 +14,7 @@ import Bcfg2.Logger from Bcfg2.Statistics import Statistics from Bcfg2.SSLServer import XMLRPCServer # Compatibility import -from Bcfg2.Bcfg2Py3k import xmlrpclib, urlparse, fprint +from Bcfg2.Bcfg2Py3k import xmlrpclib, urlparse logger = logging.getLogger() @@ -55,7 +55,7 @@ def run_component(component_cls, listen_all, location, daemon, pidfile_name, os.chdir(os.sep) pidfile = open(pidfile_name or "/dev/null", "w") - fprint(os.getpid(), pidfile) + pidfile.write("%s\n" % os.getpid()) pidfile.close() component = component_cls(cfile=cfile, **cls_kwargs) |