brentp/pyfasta — pull request #11 by mruffalo (2013-08-13 19:04:24+00:00)
Title: Minor tweaks/updates

I've had these changes sitting in my fork for a while, and I may as well make a pull request. None of these changes are very important, and I'd understand if you reject this to avoid unnecessary code churn.

* The md5 fallback import isn't necessary anymore since all supported versions of Python ship with the hashlib module.
* I missed a few occurrences of iterating over e.g. dict.items() in the first pull request -- again, may as well skip the intermediate list if the return value is used purely for iteration.
* For membership testing, a set is a bit more direct than using a dict that maps each element to None.
* The __future__.print_function usage makes the code (more or less) valid syntax in both Python 2 and 3. These changes were all produced by 2to3; making these changes up-front reduces the work done by 2to3 in setup.py build and makes it easier to edit the code in an IDE that's configured for Python 3.