This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
Releases: google/sprockets
Releases · google/sprockets
Fix a wrong error type
Fix crash in sprockets/stl/lib.py (#31) Unclear how this worked before, maybe python wasn't evaluating the except clause? Traceback (most recent call last): File "sprockets/test_driver.py", line 349, in <module> sys.exit(0 if Main() else 1) File "sprockets/test_driver.py", line 345, in Main return RunTest(manifest_filename, manifest_arg_dict, args) File "sprockets/test_driver.py", line 327, in RunTest return TraverseGraph(transitions, states, args) File "sprockets/test_driver.py", line 276, in TraverseGraph if transition.Run(): File "sprockets/stl/state.py", line 284, in Run if e.Run() is False: File "sprockets/stl/base.py", line 671, in Run return self.event.Wait(*new_args) <snip> File "sprockets/stl/message.py", line 329, in Match decoded = self.msg.encoding.ParseFromString(encoded, self.msg) File "sprockets/stl/lib.py", line 117, in ParseFromString base64.b64decode(encoded), message_type) File "sprockets/stl/lib.py", line 62, in ParseFromString except stl.message.DecodeError: AttributeError: 'module' object has no attribute 'DecodeError'
Compatible to python 3 and protobuf 3
Make python 3 compatible. (#27) 1) Fix example_base.stl correctly. 2) Custom deepcopy for MessageFromExternal since google.protobuf.pyext._message.MessageDescriptor is not copyable. 3) Replace more dict.iteritems() with dict.items().