Created
December 6, 2013 22:24
-
-
Save gladiatr72/7833182 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def parse(ziphandle, klass, filename): | |
intance=klass() | |
if not filename in ziphandle.namelist(): | |
filename = filter(lambda f: f.lower() == filename.lower(), ziphandle.namelist())[0] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment