Python 3 support added for country type
This commit is contained in:
@@ -19,7 +19,9 @@ class Country(object):
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
return self.get_locale.im_func().territories[self.code]
|
||||
return six.get_method_function(
|
||||
self.get_locale
|
||||
)().territories[self.code]
|
||||
|
||||
def __eq__(self, other):
|
||||
if isinstance(other, Country):
|
||||
|
Reference in New Issue
Block a user