This commit is contained in:
wea_ondara
2019-08-13 18:38:14 +02:00
parent e032a1f35b
commit 696c11fa83
2 changed files with 3 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ from mt import mt
import gc
TAG_RE = re.compile(r'<[^>]+>')
TAG_CODE = re.compile(r'<code.+</code>')
printnoln = lambda text: print(text, end='', flush=True)
rprint = lambda text: print('\r' + text)
@@ -214,4 +215,4 @@ def setprop(dic, key, value):
def removetags(text):
return TAG_RE.sub('', text)
return TAG_RE.sub('', TAG_CODE.sub('', text))