Compare the changes shown at https://bitbucket.org/Gfy/pyrescene/commits/3473a185f867b74a13ad0c35192249d5#comment-1768278 with the actual raw diff at https://bitbucket.org/Gfy/pyrescene/commits/3473a185f867b74a13ad0c35192249d5655f237c/raw/. It looks like some lines have been omitted from the Bitbucket diff. The side-by-side diff is screwed up too.
Looking at the raw diff more closely, with “cat -A” under Linux, shows that most of the file has CRLF line endings (
^M$ at the end of the line), but the troublesome lines only have CR line endings (
^M without a line break):
^I^Iif not timetuple:^M$ -^I^I^Ireturn "UNKNOWN"^M$ -^I^Ireturn "%04d-%02d-%02d %02d:%02d:%02d" % timetuple^M$ -^I^M$ +^I^I^Ireturn "UNKNOWN"^M^I^Iseconds = timetuple^M^I^Iif int(seconds) != seconds:^M$ +^I^I^I# sub second precision^M^I^I^Ireturn "%04d-%02d-%02d %02d:%02d:%02.7f" % timetuple^M^I^Ielse:^M$ +^I^I^Ireturn "%04d-%02d-%02d %02d:%02d:%02d" % timetuple^M$ +^M$ ^Idef get_compression_name(self):^M$