From 297c9e9b55c556f346b25472ae1025a07c6dad4d Mon Sep 17 00:00:00 2001 From: Hidden Z Date: Sat, 30 Oct 2010 18:12:05 +0000 Subject: [PATCH] py-i2phosts-injector: replace print() with sys.stdout.write() --- py-i2phosts-injector | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py-i2phosts-injector b/py-i2phosts-injector index 0c2d760..afbb941 100755 --- a/py-i2phosts-injector +++ b/py-i2phosts-injector @@ -76,14 +76,14 @@ for line in f: h = i2phost.objects.get(name=hostname) except i2phost.DoesNotExist: if not args.quiet: - print 'Adding %s' % hostname + sys.stdout.write('Adding %s' % hostname) host = i2phost(name=hostname, b64hash=base64, description=args.description, activated=False, external=True, approved=approved) host.save() else: if not args.supress: - print 'Host %s already exists' % hostname + sys.stdout.write('Host %s already exists' % hostname) if h.b64hash != base64: - print 'Key conflict for host: %s' % hostname + sys.stdout.write('Key conflict for host: %s' % hostname) f.close()