mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
Remove u-prefixes.
This commit is contained in:
parent
c824d15aa1
commit
6b2200fc88
2 changed files with 3 additions and 3 deletions
|
|
@ -94,7 +94,7 @@ def process_story(raw_story):
|
|||
|
||||
|
||||
def _add_missing_period(line):
|
||||
END_TOKENS = [".", "!", "?", "...", "'", "`", '"', u"\u2019", u"\u2019", ")"]
|
||||
END_TOKENS = [".", "!", "?", "...", "'", "`", '"', "\u2019", "\u2019", ")"]
|
||||
if line.startswith("@highlight"):
|
||||
return line
|
||||
if line[-1] in END_TOKENS:
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@ class ANSI:
|
|||
Helper for en.wikipedia.org/wiki/ANSI_escape_code
|
||||
"""
|
||||
|
||||
_bold = u"\u001b[1m"
|
||||
_reset = u"\u001b[0m"
|
||||
_bold = "\u001b[1m"
|
||||
_reset = "\u001b[0m"
|
||||
|
||||
@classmethod
|
||||
def bold(cls, s):
|
||||
|
|
|
|||
Loading…
Reference in a new issue