diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/config.py | 4 | ||||
-rw-r--r-- | Lib/turtledemo/__main__.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/distutils/config.py b/Lib/distutils/config.py index bf8d8dd..e66d103 100644 --- a/Lib/distutils/config.py +++ b/Lib/distutils/config.py @@ -77,7 +77,7 @@ class PyPIRCCommand(Command): # optional params for key, default in (('repository', self.DEFAULT_REPOSITORY), - ('realm', self.DEFAULT_REALM), + ('realm', realm), ('password', None)): if config.has_option(server, key): current[key] = config.get(server, key) @@ -106,7 +106,7 @@ class PyPIRCCommand(Command): 'password': config.get(server, 'password'), 'repository': repository, 'server': server, - 'realm': self.DEFAULT_REALM} + 'realm': realm} return {} diff --git a/Lib/turtledemo/__main__.py b/Lib/turtledemo/__main__.py index 0a58332..6daf694 100644 --- a/Lib/turtledemo/__main__.py +++ b/Lib/turtledemo/__main__.py @@ -136,7 +136,7 @@ class DemoWindow(object): import subprocess # Make sure we are the currently activated OS X application # so that our menu bar appears. - p = subprocess.Popen( + subprocess.run( [ 'osascript', '-e', 'tell application "System Events"', |