aboutsummaryrefslogtreecommitdiffstats
path: root/pathod/pathod.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-04-13 22:34:28 -0700
committerMaximilian Hils <git@maximilianhils.com>2016-04-13 22:34:28 -0700
commitbc60c26c7bcf22876dd9436bff2b0ad886627d3d (patch)
treecd1683e3ff85195a84549d0d89c8a7110111e585 /pathod/pathod.py
parent03c011cf4b1cad376529c0a64c912677fb93e93e (diff)
downloadmitmproxy-bc60c26c7bcf22876dd9436bff2b0ad886627d3d.tar.gz
mitmproxy-bc60c26c7bcf22876dd9436bff2b0ad886627d3d.tar.bz2
mitmproxy-bc60c26c7bcf22876dd9436bff2b0ad886627d3d.zip
py3++
Diffstat (limited to 'pathod/pathod.py')
-rw-r--r--pathod/pathod.py12
1 files changed, 6 insertions, 6 deletions
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