Remove accidentally included debug outputs.
git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1061 9bc8b190-ac0f-0410-8968-dc7d1f502856
This commit is contained in:
parent
5f495b1be4
commit
d2b36ab0e9
2
Pkg.py
2
Pkg.py
|
@ -91,14 +91,12 @@ bz2_regex=re.compile('\.t?bz2?$')
|
|||
# TODO: is_utf8* could probably be implemented natively without iconv...
|
||||
|
||||
def is_utf8(fname):
|
||||
print "is_utf8 called"
|
||||
cat='gzip -dcf'
|
||||
if bz2_regex.search(fname): cat='bzip2 -dcf'
|
||||
cmd = commands.getstatusoutput('%s %s | iconv -f utf-8 -t utf-8 -o /dev/null' % (cat, fname))
|
||||
return not cmd[0]
|
||||
|
||||
def is_utf8_str(s):
|
||||
print "is_utf8_str called"
|
||||
f=os.popen('iconv -f utf-8 -t utf-8 -o /dev/null 2>/dev/null', 'w')
|
||||
f.write(s)
|
||||
return not f.close()
|
||||
|
|
Loading…
Reference in New Issue