Phyks / BMC

BMC (BiblioManagementClient) is a simple script to download and store your articles.
Other
16 stars 4 forks source link

typeError after download with python3 #16

Closed berceanu closed 10 years ago

berceanu commented 10 years ago
[==================================================] 96%Download finished
Traceback (most recent call last):
  File "/home/berceanu/tmp/biblio/bin/bmc.py", line 532, in <module>
    args.tag)
  File "/home/berceanu/tmp/biblio/bin/bmc.py", line 292, in downloadFile
    fh.write(dl)
  File "/usr/lib/python3.4/codecs.py", line 711, in write
    return self.writer.write(data)
  File "/usr/lib/python3.4/codecs.py", line 368, in write
    data, consumed = self.encode(object, self.errors)
TypeError: Can't convert 'bytes' object to str implicitly
Phyks commented 10 years ago

Fixed in last commit.