CC-2633: removing to_unicode()
- removed to_unicode() function calls where it's not neccessary.
This commit is contained in:
parent
8995e828ff
commit
3a2d736b1c
3 changed files with 0 additions and 7 deletions
|
@ -191,7 +191,6 @@ class AirtimeMetadata:
|
|||
|
||||
if (isinstance(md[key], basestring)):
|
||||
#self.logger.info("Converting md[%s] = '%s' ", key, md[key])
|
||||
md[key] = to_unicode(md[key])
|
||||
md[key] = encode_to(md[key], 'utf-8')
|
||||
#self.logger.info("Converting complete: md[%s] = '%s' ", key, md[key])
|
||||
|
||||
|
|
|
@ -231,7 +231,6 @@ class AirtimeMetadata:
|
|||
|
||||
if (isinstance(md[key], basestring)):
|
||||
#self.logger.info("Converting md[%s] = '%s' ", key, md[key])
|
||||
md[key] = api_client.to_unicode(md[key])
|
||||
md[key] = api_client.encode_to(md[key], 'utf-8')
|
||||
#self.logger.info("Converting complete: md[%s] = '%s' ", key, md[key])
|
||||
|
||||
|
|
|
@ -37,9 +37,7 @@ def copy_or_move_files_to(paths, dest, flag):
|
|||
path = os.path.realpath(path)
|
||||
else:
|
||||
path = currentDir+path
|
||||
path = apc.to_unicode(path)
|
||||
path = apc.encode_to(path, 'utf-8')
|
||||
dest = apc.to_unicode(dest)
|
||||
dest = apc.encode_to(dest, 'utf-8')
|
||||
if(os.path.exists(path)):
|
||||
if(os.path.isdir(path)):
|
||||
|
@ -148,7 +146,6 @@ def WatchAddAction(option, opt, value, parser):
|
|||
path = os.path.realpath(path)
|
||||
else:
|
||||
path = currentDir+path
|
||||
path = apc.to_unicode(path)
|
||||
path = apc.encode_to(path, 'utf-8')
|
||||
if(os.path.isdir(path)):
|
||||
res = api_client.add_watched_dir(path)
|
||||
|
@ -189,7 +186,6 @@ def WatchRemoveAction(option, opt, value, parser):
|
|||
path = os.path.realpath(path)
|
||||
else:
|
||||
path = currentDir+path
|
||||
path = apc.to_unicode(path)
|
||||
path = apc.encode_to(path, 'utf-8')
|
||||
if(os.path.isdir(path)):
|
||||
res = api_client.remove_watched_dir(path)
|
||||
|
@ -235,7 +231,6 @@ def StorageSetAction(option, opt, value, parser):
|
|||
path = os.path.realpath(path)
|
||||
else:
|
||||
path = currentDir+path
|
||||
path = apc.to_unicode(path)
|
||||
path = apc.encode_to(path, 'utf-8')
|
||||
if(os.path.isdir(path)):
|
||||
res = api_client.set_storage_dir(path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue