Hi,

I'm hitting this problem and started troubleshooting to find a root
cause, and I found something I don't understand. This is the output I
receive in a clean Vivid environment:

root@vivid:~# dpkg -l python3-pep8 pep8
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                 Version         Architecture    Description
+++-====================-===============-===============-==============================================
ii  pep8                 1.5.7-2         all             Python PEP 8 code 
style checker - python2
ii  python3-pep8         1.5.7-2         all             Python PEP 8 code 
style checker - python3
root@vivid:~# python -c "import pep8; print(pep8.__version__)"
1.5.7
root@vivid:~# python -c "import pep8; print(pep8.__file__)"
/usr/lib/python2.7/dist-packages/pep8.pyc
root@vivid:~# python3 -c "import pep8; print(pep8.__version__)"
1.4.6
root@vivid:~# python3 -c "import pep8; print(pep8.__file__)"
/usr/lib/python3/dist-packages/pep8.py


Why pep8 for python3 is version 1.4.6 while for python2 is 1.5.7?

Here is the output of "diff -u /usr/lib/python3/dist-packages/pep8.py
/usr/lib/python2.7/dist-packages/pep8.py" (see attachment) which I would
expect to be just a few lines (the shebang, maybe a timestamp and that's
it), but it's not, files are completely different.

$ diffstat /tmp/py3-py2.diff 
 pep8.py |  700 ++++++++++++++++++++++++++++++++++------------------------------
 1 file changed, 382 insertions(+), 318 deletions(-)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1429521

Title:
  AttributeError: 'Checker' object has no attribute 'blank_before'

To manage notifications about this bug go to:
https://bugs.launchpad.net/hundredpapercuts/+bug/1429521/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to