|
|
@ -1855,9 +1855,9 @@ class _file(_error):
|
|
|
|
if profile=="Old" and self.nameFileOld:
|
|
|
|
if profile=="Old" and self.nameFileOld:
|
|
|
|
nameFile = self.nameFileOld
|
|
|
|
nameFile = self.nameFileOld
|
|
|
|
sp = subprocess.Popen("file '%s'"%nameFile, stdin=subprocess.PIPE,
|
|
|
|
sp = subprocess.Popen("file '%s'"%nameFile, stdin=subprocess.PIPE,
|
|
|
|
stdout=subprocess.PIPE, close_fds=True,
|
|
|
|
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
|
|
|
|
shell=True)
|
|
|
|
close_fds=True, shell=True)
|
|
|
|
fout, fin = (sp.stdout, sp.stdin)
|
|
|
|
fout, fin, ferr = (sp.stdout, sp.stdin, sp.stderr)
|
|
|
|
fin.close()
|
|
|
|
fin.close()
|
|
|
|
textLine = fout.readline()
|
|
|
|
textLine = fout.readline()
|
|
|
|
fout.readlines()
|
|
|
|
fout.readlines()
|
|
|
@ -1873,6 +1873,7 @@ class _file(_error):
|
|
|
|
if textFormat in fileTypeString:
|
|
|
|
if textFormat in fileTypeString:
|
|
|
|
retText = "text"
|
|
|
|
retText = "text"
|
|
|
|
break
|
|
|
|
break
|
|
|
|
|
|
|
|
ferr.close()
|
|
|
|
return retText
|
|
|
|
return retText
|
|
|
|
|
|
|
|
|
|
|
|
def scanDirs(self, profilesDirs):
|
|
|
|
def scanDirs(self, profilesDirs):
|
|
|
|