Merge "Replace unicode with six.text_type"

This commit is contained in:
Zuul 2018-07-10 22:13:14 +00:00 committed by Gerrit Code Review
commit 058b5b5bd6
1 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ import json
import os
import pwd
import re
import six
import time
import yaml
import tempfile as tmpfilelib
@ -228,7 +229,7 @@ class ConfigTemplateParser(ConfigParser.RawConfigParser):
_temp_item = list(cursect[optname])
del cursect[optname]
cursect[optname] = _temp_item
elif isinstance(cursect[optname], (str, unicode)):
elif isinstance(cursect[optname], six.text_type):
_temp_item = [cursect[optname]]
del cursect[optname]
cursect[optname] = _temp_item