Wireshark-bugs: [Wireshark-bugs] [Bug 8995] build fails if system python is version 3+

Date: Wed, 31 Jul 2013 22:49:18 +0000

Comment # 8 on bug 8995 from
(In reply to comment #3)
> Created attachment 11305 [details]
> Python 2+3 compatibility for make-dissector-reg.py
> 
> The attached patch works for Python 2 and 3 on my system. It also makes a
> couple of changes suggested by "2to3". If no one has any objections I'll
> check it in.

Doesn't work on the OS X 10.5 buildbot, though:

   
http://buildbot.wireshark.org/trunk/builders/OSX-10.5-x86/builds/6517/steps/compile/logs/stdio

    ...

Traceback (most recent call last):
  File "../../tools/make-dissector-reg.py", line 288, in <module>
    new_hash = hashlib.sha1(bytes(reg_code.encode('utf-8'))).hexdigest()
NameError: name 'bytes' is not defined


You are receiving this mail because:
  • You are watching all bug changes.