Remove warnings caused by '\x00'
Manually unescape '\x00' for the time being, removing spurious warnings.
This commit is contained in:
parent
2e6e2c4fde
commit
90a9e350c0
|
|
@ -45,6 +45,9 @@ def parse_txt(lang, no_warning):
|
||||||
source = src.readline()[:-1].strip('"')
|
source = src.readline()[:-1].strip('"')
|
||||||
#print (source) #Debug
|
#print (source) #Debug
|
||||||
translation = src.readline()[:-1].strip('"')
|
translation = src.readline()[:-1].strip('"')
|
||||||
|
if translation == '\\x00':
|
||||||
|
# crude hack to handle intentionally-empty translations
|
||||||
|
translation = ''
|
||||||
#print (translation) #Debug
|
#print (translation) #Debug
|
||||||
#Wrap text to 20 chars and rows
|
#Wrap text to 20 chars and rows
|
||||||
wrapper = textwrap.TextWrapper(width=20)
|
wrapper = textwrap.TextWrapper(width=20)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue