summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
author周家未 <752736341@qq.com>2019-04-22 13:28:57 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2019-04-22 13:28:57 (GMT)
commitd59b662e490d3fae662c5f81fa5248f0445d2158 (patch)
tree3dc6753b330466f22829cd13f58ea96a26adafba /Tools
parentab86521a9d9999731e39bd9056420bb7774fd144 (diff)
downloadcpython-d59b662e490d3fae662c5f81fa5248f0445d2158.zip
cpython-d59b662e490d3fae662c5f81fa5248f0445d2158.tar.gz
cpython-d59b662e490d3fae662c5f81fa5248f0445d2158.tar.bz2
bpo-36690: Fix typo in Tools/demo/rpython.py (GH-12903)
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/demo/rpython.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/demo/rpython.py b/Tools/demo/rpython.py
index 8d7e274..11f72cb 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:])
with socket(AF_INET, SOCK_STREAM) as s: