From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 22 Apr 2019 13:53:53 +0000 (-0700) Subject: bpo-36690: Fix typo in Tools/demo/rpython.py (GH-12903) X-Git-Tag: v3.7.4rc1~220 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5407aaf18b8d33d0a327991db366457ac6fead2d;p=thirdparty%2FPython%2Fcpython.git bpo-36690: Fix typo in Tools/demo/rpython.py (GH-12903) (cherry picked from commit d59b662e490d3fae662c5f81fa5248f0445d2158) Co-authored-by: 周家未 <752736341@qq.com> --- 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)