Package: decopy
Version: 0.2-1
Severity: important

Dear Maintainer,

I'm trying to use decopy on a Python 2 package, and it fails, as it seems it 
attempts
to parse its Python code with Python 3 parser:

$ decopy 
Traceback (most recent call last):
  File "/usr/bin/decopy", line 11, in <module>
    load_entry_point('Decopy==0.1', 'console_scripts', 'decopy')()
  File "/usr/lib/python3/dist-packages/decopy/decopy.py", line 62, in main
    filetree.process(options)
  File "/usr/lib/python3/dist-packages/decopy/tree.py", line 369, in process
    item.process_licenses(self.root, options)
  File "/usr/lib/python3/dist-packages/decopy/tree.py", line 175, in 
process_licenses
    copyrights, licenses = parse_file(fullpath, options)
  File "/usr/lib/python3/dist-packages/decopy/parsers.py", line 155, in 
parse_file
    copyrights, licenses = parser(fullname)
  File "/usr/lib/python3/dist-packages/decopy/parsers.py", line 62, in 
python_parser
    for token in tokenize.tokenize(f.readline):
  File "/usr/lib/python3.5/tokenize.py", line 580, in _tokenize
    ("<tokenize>", lnum, pos, line))
  File "<tokenize>", line 176
    print "SSRC spammer started"
    ^
IndentationError: Missing parentheses in call to 'print'

-- System Information:

Versions of packages decopy depends on:
ii  bzip2           1.0.6-8build1
ii  exiv2           0.25-3
ii  python3-debian  0.1.29
ii  python3-xdg     0.25-4
pn  python3:any     <none>
ii  xz-utils        5.1.1alpha+20120614-2

Reply via email to