]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-36690: Fix typo in Tools/demo/rpython.py (GH-12903)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 22 Apr 2019 13:53:53 +0000 (06:53 -0700)
committerBerker Peksag <berker.peksag@gmail.com>
Mon, 22 Apr 2019 13:53:53 +0000 (16:53 +0300)
(cherry picked from commit d59b662e490d3fae662c5f81fa5248f0445d2158)

Co-authored-by: 周家未 <752736341@qq.com>
Tools/demo/rpython.py

index 5e7bc0a27d1198e2b6087b4b642f0da0ab91f1f5..71d436c46dbdd62f2f15185487cc44b181a88ac2 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:])
     s = socket(AF_INET, SOCK_STREAM)