Show More
@@ -930,7 +930,11 b' def notloaded():' | |||
|
930 | 930 | def moduleversion(module): |
|
931 | 931 | '''return version information from given module as a string''' |
|
932 | 932 | if util.safehasattr(module, b'getversion') and callable(module.getversion): |
|
933 | try: | |
|
933 | 934 | version = module.getversion() |
|
935 | except Exception: | |
|
936 | version = b'unknown' | |
|
937 | ||
|
934 | 938 | elif util.safehasattr(module, b'__version__'): |
|
935 | 939 | version = module.__version__ |
|
936 | 940 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now