ftype = []
for x in list:
if not isinstance(x, unicode):
- x = unicode(x, errors='replace')
+ x = unicode(x, encoding='utf_8', errors='replace')
try:
if followSymlinks:
pathstat = os.stat(mypath+"/"+x)
continue
for x in file_list:
if not isinstance(x, unicode):
- x = unicode(x, errors='replace')
+ x = unicode(x, encoding='utf_8', errors='replace')
pf = None
if glep55:
returnme = []
for x in dir_list:
if not isinstance(x, unicode):
- x = unicode(x, errors='replace')
+ x = unicode(x, encoding='utf_8', errors='replace')
if self._excluded_dirs.match(x) is not None:
continue
ps = pkgsplit(x)
def listdir(p, **kwargs):
try:
return [isinstance(x, unicode) and x or \
- unicode(x, errors='replace') for x in os.listdir(p) \
+ unicode(x, encoding='utf_8', errors='replace') \
+ for x in os.listdir(p) \
if os.path.isdir(os.path.join(p, x))]
except EnvironmentError, e:
if e.errno == PermissionDenied.errno:
pipe = subprocess.Popen(self._command, stdout=subprocess.PIPE, shell=True)
stdout, stderr = pipe.communicate()
if pipe.wait() == os.EX_OK:
- self._setAtoms(unicode(stdout, errors='replace').splitlines())
+ self._setAtoms(unicode(stdout,
+ encoding='utf_8', errors='replace').splitlines())
def singleBuilder(self, options, settings, trees):
if not "command" in options: