Python 3 support added for country type

This commit is contained in:
Konsta Vesterinen
2013-08-21 13:47:49 +03:00
parent 1476bda42c
commit b95736cec1

View File

@@ -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):