Menu

Commit [r27709]  Maximize  Restore  History

Python 3 fix for the internal structural object MolContainer._sort_key() method.

This method is used as the key for the sort() function. However in Python 3, the key cannot be
None. So now if the residue number is None, the value of 0 is returned instead.

bugman 2015-02-20

changed /trunk/lib/structure/internal/molecules.py
/trunk/lib/structure/internal/molecules.py Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.