Or use os.path.splitext(filename) which will save you a couple of
endswith calls as well.
--
David Kågedal <david@kagedal.org>
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author] Next message: [thread] [date] [author]
Messages in current thread:
Re: [PATCH - stgit] Patch to allow import of compressed files, David Kågedal, (Thu Jun 19, 7:17 am)