From bc60c26c7bcf22876dd9436bff2b0ad886627d3d Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Wed, 13 Apr 2016 22:34:28 -0700 Subject: py3++ --- pathod/pathod.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'pathod/pathod.py') diff --git a/pathod/pathod.py b/pathod/pathod.py index b80da887..017ce072 100644 --- a/pathod/pathod.py +++ b/pathod/pathod.py @@ -1,3 +1,4 @@ +from __future__ import print_function import copy import logging import os @@ -484,20 +485,19 @@ def main(args): # pragma: no cover webdebug=args.webdebug ) except PathodError as v: - print >> sys.stderr, "Error: %s" % v + print("Error: %s" % v, file=sys.stderr) sys.exit(1) except language.FileAccessDenied as v: - print >> sys.stderr, "Error: %s" % v + print("Error: %s" % v, file=sys.stderr) if args.daemonize: utils.daemonize() try: - print "%s listening on %s:%s" % ( + print("%s listening on %s" % ( version.NAMEVERSION, - pd.address.host, - pd.address.port - ) + repr(pd.address) + )) pd.serve_forever() except KeyboardInterrupt: pass -- cgit v1.2.3