From 9b53df4becddd3efe5d8a2f15273ca6ce9fdb843 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 24 Apr 2016 23:19:28 -0500 Subject: Move import to header --- setuptools/command/upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setuptools/command/upload.py') diff --git a/setuptools/command/upload.py b/setuptools/command/upload.py index 43c0b0d7..0e8bbea3 100644 --- a/setuptools/command/upload.py +++ b/setuptools/command/upload.py @@ -1,3 +1,4 @@ +import getpass from distutils.command import upload as orig @@ -34,7 +35,6 @@ class upload(orig.upload): """ password = None try: - import getpass while not password: password = getpass.getpass() except (Exception, KeyboardInterrupt): -- cgit v1.2.1