Skip to content

Commit

Permalink
Use print() function in both Python 2 and Python 3
Browse files Browse the repository at this point in the history
Discovered via: __flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics__

Legacy __print__ statements are syntax errors in Python 3 but __print()__ function works as expected in both Python 2 and Python 3.
  • Loading branch information
cclauss authored and cgoldberg committed Jun 26, 2019
1 parent f0a5f89 commit c1af560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/custom_xmlrpc_client/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def get_random_number(low, high):
return random.randint(low, high)

server = SimpleXMLRPCServer(("localhost", 8877))
print "Listening on port 8877..."
print("Listening on port 8877...")
server.register_function(get_time, "get_time")
server.register_function(get_random_number, "get_random_number")
server.serve_forever()

0 comments on commit c1af560

Please sign in to comment.