Development Team/Activities/Compatibility
< Development Team
Jump to navigation
Jump to search
Revision as of 17:22, 21 February 2010 by Anal bleaching (talk | contribs) (moved Development Team/Activities/Compatibility to Anal bleaching 15/Activities/Compatibility: Anal bleaching)
As an example, instead of:
if sugar.version >= 0.82: keyHash = util.sha_data(key) else: keyHash = util._sha_data(key)
you would code:
if hasattr(util, 'sha_data'): keyHash = util.sha_data(key) else: keyHash = util._sha_data(key)