1. Chia-Huan Wu
  2. freehg

Commits

Matthew Marshall  committed 172feb8

Fixed loading htpasswd file (I think.)

  • Participants
  • Parent commits 71ed340
  • Branches default

Comments (0)

Files changed (1)

File htpasswdutils.py

View file
  • Ignore whitespace
         self.filename = filename
         if mode != 'c' or os.path.exists(filename):
             file = open(filename, "r")
-            for line in self.file:
+            for line in file:
                 k, v = line.split(':',1)
                 self.records[k] = v
             file.close()