]> granicus.if.org Git - python/commitdiff
bpo-36690: Fix typo in Tools/demo/rpython.py (GH-12903)
author周家未 <752736341@qq.com>
Mon, 22 Apr 2019 13:28:57 +0000 (21:28 +0800)
committerBerker Peksag <berker.peksag@gmail.com>
Mon, 22 Apr 2019 13:28:57 +0000 (16:28 +0300)
Tools/demo/rpython.py

index 8d7e2747636c4fb772d754a20bdbddafcd02e2f3..11f72cb3dd26a61b9e1b1896970f52c3cebfa501 100755 (executable)
@@ -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: