[Python-checkins] bpo-36690: Fix typo in Tools/demo/rpython.py (GH-12903)
Berker Peksag
webhook-mailer at python.org
Mon Apr 22 09:54:37 EDT 2019
https://github.com/python/cpython/commit/5407aaf18b8d33d0a327991db366457ac6fead2d
commit: 5407aaf18b8d33d0a327991db366457ac6fead2d
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Berker Peksag <berker.peksag at gmail.com>
date: 2019-04-22T16:53:53+03:00
summary:
bpo-36690: Fix typo in Tools/demo/rpython.py (GH-12903)
(cherry picked from commit d59b662e490d3fae662c5f81fa5248f0445d2158)
Co-authored-by: 周家未 <752736341 at qq.com>
files:
M Tools/demo/rpython.py
diff --git a/Tools/demo/rpython.py b/Tools/demo/rpython.py
index 5e7bc0a27d11..71d436c46dbd 100755
--- a/Tools/demo/rpython.py
+++ b/Tools/demo/rpython.py
@@ -19,7 +19,7 @@ def main():
port = PORT
i = host.find(':')
if i >= 0:
- port = int(port[i+1:])
+ port = int(host[i+1:])
host = host[:i]
command = ' '.join(sys.argv[2:])
s = socket(AF_INET, SOCK_STREAM)
More information about the Python-checkins
mailing list