1. Martin von Löwis
  2. pep381client

Commits

Martin von Löwis  committed 52beda4

Mode must be 'rb', not just 'b'.

  • Participants
  • Parent commits d334eb8
  • Branches default

Comments (0)

Files changed (1)

File scripts/pep381checkfiles

View file
  • Ignore whitespace
         if not os.path.exists(fn):
             print "Missing file", fn
             continue
-        if "md5="+hashlib.md5(open(fn,'b').read()) != md5:
+        if "md5="+hashlib.md5(open(fn,'rb').read()) != md5:
             print "Bad md5", fn
             continue