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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 self._message_listener.Modified() | 260 self._message_listener.Modified() |
261 | 261 |
262 def __eq__(self, other): | 262 def __eq__(self, other): |
263 """Compares the current instance with another one.""" | 263 """Compares the current instance with another one.""" |
264 if self is other: | 264 if self is other: |
265 return True | 265 return True |
266 if not isinstance(other, self.__class__): | 266 if not isinstance(other, self.__class__): |
267 raise TypeError('Can only compare repeated composite fields against ' | 267 raise TypeError('Can only compare repeated composite fields against ' |
268 'other repeated composite fields.') | 268 'other repeated composite fields.') |
269 return self._values == other._values | 269 return self._values == other._values |
OLD | NEW |