| OLD | NEW |
| 1 # Protocol Buffers - Google's data interchange format | 1 # Protocol Buffers - Google's data interchange format |
| 2 # Copyright 2008 Google Inc. All rights reserved. | 2 # Copyright 2008 Google Inc. All rights reserved. |
| 3 # http://code.google.com/p/protobuf/ | 3 # http://code.google.com/p/protobuf/ |
| 4 # | 4 # |
| 5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
| 6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
| 7 # met: | 7 # met: |
| 8 # | 8 # |
| 9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
| 10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 raise NotImplementedError | 275 raise NotImplementedError |
| 276 | 276 |
| 277 def __getstate__(self): | 277 def __getstate__(self): |
| 278 """Support the pickle protocol.""" | 278 """Support the pickle protocol.""" |
| 279 return dict(serialized=self.SerializePartialToString()) | 279 return dict(serialized=self.SerializePartialToString()) |
| 280 | 280 |
| 281 def __setstate__(self, state): | 281 def __setstate__(self, state): |
| 282 """Support the pickle protocol.""" | 282 """Support the pickle protocol.""" |
| 283 self.__init__() | 283 self.__init__() |
| 284 self.ParseFromString(state['serialized']) | 284 self.ParseFromString(state['serialized']) |
| OLD | NEW |