Mercurial > p > roundup > code
view roundup/dist/command/install_lib.py @ 5429:daa19de102a2
Python 3 preparation: make fallback SysCallError an actual exception class.
The code defines a fallback version of SysCallError when import of
OpenSSL.SSL. But in Python 3, defining it as None and then using in
"except" statements results in:
TypeError: catching classes that do not inherit from BaseException is
not allowed
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Wed, 25 Jul 2018 09:56:22 +0000 |
| parents | 85dfe17c182e |
| children | 42bf0a707763 |
line wrap: on
line source
from roundup.dist.command.build import build_message_files, check_manifest from distutils.command.install_lib import install_lib as base class install_lib(base): def run(self): check_manifest() build_message_files(self) base.run(self)
