Commits

Anonymous committed 91007db

fix get_content_length bug

  • Participants
  • Parent commits e0c0750

Comments (0)

Files changed (1)

File zine/utils/net.py

         return len(data_or_fp)
     except TypeError:
         try:
-            return os.fstat(data_or_fp.fileno().st_size)
+            return os.fstat(data_or_fp.fileno()).st_size
         except (AttributeError, OSError):
             pass