about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2019-02-15 14:26:27 +0800
committerGitHub <noreply@github.com>2019-02-15 14:26:27 +0800
commitd21026e3e0d47ecf42c380a25166cb8cd7d7bd63 (patch)
treea235b032c67044fa39cec2b33ae2d91337569ebd /src/tools
parentf47ec2ad5b6887b3d400aee49e2294bd27733d18 (diff)
downloadrust-d21026e3e0d47ecf42c380a25166cb8cd7d7bd63.tar.gz
rust-d21026e3e0d47ecf42c380a25166cb8cd7d7bd63.zip
Fix the syntax error in publish_toolstate.py
Diffstat (limited to 'src/tools')
-rwxr-xr-xsrc/tools/publish_toolstate.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/publish_toolstate.py b/src/tools/publish_toolstate.py
index 24d6fd5b19b..75b1db8045d 100755
--- a/src/tools/publish_toolstate.py
+++ b/src/tools/publish_toolstate.py
@@ -140,12 +140,12 @@ def update_latest(
                         tool, MAINTAINERS.get(tool),
                         relevant_pr_number, relevant_pr_user, pr_reviewer,
                     )
-                except IOError as (errno, strerror):
+                except IOError as e:
                     # network errors will simply end up not creating an issue, but that's better
                     # than failing the entire build job
-                    print "I/O error({0}): {1}".format(errno, strerror)
+                    print("I/O error: {0}".format(e))
                 except:
-                    print "Unexpected error:", sys.exc_info()[0]
+                    print("Unexpected error: {0}".format(sys.exc_info()[0]))
                     raise
 
             if changed: