From: Greg Ward Date: Sat, 30 Sep 2000 17:35:26 +0000 (+0000) Subject: Fixed 'run()' so it doesn't call 'bytecompile()' if 'install()' returned None. X-Git-Tag: v2.0c1~190 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e6d43801b9d8ec5e73588f52bac660e14257160;p=python Fixed 'run()' so it doesn't call 'bytecompile()' if 'install()' returned None. --- diff --git a/Lib/distutils/command/install_lib.py b/Lib/distutils/command/install_lib.py index a603b4f59e..2c92f3fe4a 100644 --- a/Lib/distutils/command/install_lib.py +++ b/Lib/distutils/command/install_lib.py @@ -56,7 +56,8 @@ class install_lib (Command): outfiles = self.install() # (Optionally) compile .py to .pyc - self.bytecompile(outfiles) + if outfiles is not None: + self.bytecompile(outfiles) # run ()