Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e6d438

Browse files
committed
Fixed 'run()' so it doesn't call 'bytecompile()' if 'install()' returned None.
1 parent e564278 commit 3e6d438

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/distutils/command/install_lib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ def run (self):
5656
outfiles = self.install()
5757

5858
# (Optionally) compile .py to .pyc
59-
self.bytecompile(outfiles)
59+
if outfiles is not None:
60+
self.bytecompile(outfiles)
6061

6162
# run ()
6263

0 commit comments

Comments
 (0)