1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-02-02 01:44:40 +00:00

py-i2phosts-injector: add trailing newline where needed

This commit is contained in:
Hidden Z 2010-11-07 20:09:47 +00:00
parent 8bef1fd666
commit 3d7433f44b

View File

@ -87,14 +87,14 @@ for line in f:
h = i2phost.objects.get(name=hostname)
except i2phost.DoesNotExist:
if not args.quiet:
sys.stdout.write('Adding %s' % hostname)
sys.stdout.write('Adding %s\n' % hostname)
host = i2phost(name=hostname, b64hash=base64,
description=args.description,
activated=False, external=True, approved=approved)
host.save()
else:
if not args.supress:
sys.stdout.write('Host %s already exists' % hostname)
sys.stdout.write('Host %s already exists\n' % hostname)
if h.b64hash != base64:
sys.stdout.write('Key conflict for host: %s' % hostname)
sys.stdout.write('Key conflict for host: %s\n' % hostname)
f.close()