Use UTF-8 everywhere (#228)
This commit is contained in:
parent
b20970098e
commit
19a8079bc8
3 changed files with 4 additions and 4 deletions
|
@ -356,7 +356,7 @@ class PyiCloudService(object):
|
||||||
if sys.version_info[0] >= 3:
|
if sys.version_info[0] >= 3:
|
||||||
return as_unicode
|
return as_unicode
|
||||||
else:
|
else:
|
||||||
return as_unicode.encode('ascii', 'ignore')
|
return as_unicode.encode('utf-8', 'ignore')
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return '<%s>' % str(self)
|
return '<%s>' % str(self)
|
||||||
|
|
|
@ -85,7 +85,7 @@ class FindMyiPhoneServiceManager(object):
|
||||||
if sys.version_info[0] >= 3:
|
if sys.version_info[0] >= 3:
|
||||||
return as_unicode
|
return as_unicode
|
||||||
else:
|
else:
|
||||||
return as_unicode.encode('ascii', 'ignore')
|
return as_unicode.encode('utf-8', 'ignore')
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return six.text_type(self)
|
return six.text_type(self)
|
||||||
|
@ -215,7 +215,7 @@ class AppleDevice(object):
|
||||||
if sys.version_info[0] >= 3:
|
if sys.version_info[0] >= 3:
|
||||||
return as_unicode
|
return as_unicode
|
||||||
else:
|
else:
|
||||||
return as_unicode.encode('ascii', 'ignore')
|
return as_unicode.encode('utf-8', 'ignore')
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return '<AppleDevice(%s)>' % str(self)
|
return '<AppleDevice(%s)>' % str(self)
|
||||||
|
|
|
@ -112,7 +112,7 @@ class UbiquityNode(object):
|
||||||
if sys.version_info[0] >= 3:
|
if sys.version_info[0] >= 3:
|
||||||
return as_unicode
|
return as_unicode
|
||||||
else:
|
else:
|
||||||
return as_unicode.encode('ascii', 'ignore')
|
return as_unicode.encode('utf-8', 'ignore')
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "<%s: '%s'>" % (
|
return "<%s: '%s'>" % (
|
||||||
|
|
Loading…
Reference in a new issue