Edgewall Software

Changes between Version 1 and Version 2 of Ticket #12294, comment 1


Ignore:
Timestamp:
Jan 2, 2016, 12:52:38 AM (8 years ago)
Author:
Ryan J Ollos

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12294, comment 1

    v1 v2  
    1818However, `get_pkginfo(PIL)['version']` seems much simpler. `get_pkginfo(PIL).get('version', '')` might be even safer.
    1919
    20 Related: I'm still unsure of the complexity of the `trac_version` method that was created by extracting code in [14354/trunk/trac/env.py]. Under which conditions would `get_pkginfo(core).get('version')` return `None` for the Trac package? Obviously plugins could omit the attribute.
     20Related: I'm still unsure of the complexity of the `trac_version` method that was created by extracting code in [14354/trunk/trac/env.py]. Under which conditions would `get_pkginfo(core).get('version')` return `None` for the Trac package?