cenkalti / putio.py

A python wrapper for put.io APIv2
http://put.io
MIT License
72 stars 41 forks source link

Python3 support for dict.iteritems() in strptime() #43

Closed ghost closed 6 years ago

ghost commented 6 years ago

Otherwise, File.created_at returns None for Python 3.x. Thanks.

cenkalti commented 6 years ago

Hello @canelma. Thank you for the PR. Can you just write d = dict((k, int(v)) for k, v in d.items())? It will be both compatible for 2 and 3 without using try/except block.