$ /usr/bin/pcsc-spy --help File "/usr/bin/pcsc-spy", line 167 print self.indent + PCSCspy.color_red + data + PCSCspy.color_normal + time ^ SyntaxError: Missing parentheses in call to 'print'
Created attachment 385790 [details, diff] pcsc-spy-python3.patch Can you please checkout if this patch works for you?
Many (but not all) changes for print() result in changed output with Python 2. Python 2: >>> print "ab", "cd" ab cd >>> print("ab", "cd") ('ab', 'cd') Python 3: >>> print("ab", "cd") ab cd All instances of print("some string", something) should be changed to e.g. print("some string %s" % something), which results in identical output with Python 2 and 3.
Also behavior of Python 3 can be achieved in Python 2 by adding the following line at the beginning of script: from __future__ import print_function (This works only with Python >=2.6. It is ignored in Python 3.)
Can you please provide workable patch, work with upstream to resolve and submit it here as well? Thanks!
ok, for now I forced python2.