Commit be700028 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Fixed typo in pickle tests.

parent cfc2a1fc
...@@ -2448,7 +2448,7 @@ class REX_six(object): ...@@ -2448,7 +2448,7 @@ class REX_six(object):
def __init__(self, items=None): def __init__(self, items=None):
self.items = items if items is not None else [] self.items = items if items is not None else []
def __eq__(self, other): def __eq__(self, other):
return type(self) is type(other) and self.items == self.items return type(self) is type(other) and self.items == other.items
def append(self, item): def append(self, item):
self.items.append(item) self.items.append(item)
def __reduce__(self): def __reduce__(self):
...@@ -2461,7 +2461,7 @@ class REX_seven(object): ...@@ -2461,7 +2461,7 @@ class REX_seven(object):
def __init__(self, table=None): def __init__(self, table=None):
self.table = table if table is not None else {} self.table = table if table is not None else {}
def __eq__(self, other): def __eq__(self, other):
return type(self) is type(other) and self.table == self.table return type(self) is type(other) and self.table == other.table
def __setitem__(self, key, value): def __setitem__(self, key, value):
self.table[key] = value self.table[key] = value
def __reduce__(self): def __reduce__(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment