1. Brian Curtin
  2. pydotorg_webstats

Commits

Brian Curtin  committed 9abc498

Remove extra 'read'

  • Participants
  • Parent commits 639475d
  • Branches default

Comments (0)

Files changed (1)

File webstats.py

View file
  • Ignore whitespace
             for chunk in _read(url, 4096):
                 text += chunk
             text = text.decode("latin1", "replace")
-            print("Reading {} bytes read took {}".format(bytes_read,
-                                                         time.time() - t))
+            print("Reading {} bytes took {}".format(bytes_read,
+                                                    time.time() - t))
 
             with open(cached_file, "w") as f:
                 f.write(text)