Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tsproisl committed Mar 22, 2018
1 parent fa2fee4 commit 6fbd9b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions somajo/camel_case_tokens.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7007,5 +7007,5 @@ ZynAddSubFX
ČeskéNoviny
ŠkodaAuto

# Mocoda
MisterMcFluff
# Mocoda (from Tobias Horsmann)
MisterMcFluff
2 changes: 1 addition & 1 deletion somajo/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(self, split_camel_case=False, token_classes=False, extra_info=False
\s+ # Whitespace to separate attributes
[_:A-Z][-.:\w]* # Attribute name
\s*=\s* # Attribute name-value delimiter
(?: "[^"”“]*" # Double-quoted attribute value
(?: "[^"]*" # Double-quoted attribute value
| '[^']*' # Single-quoted attribute value
)
)*
Expand Down
2 changes: 1 addition & 1 deletion somajo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
def read_abbreviation_file(filename):
"""Return the abbreviations from the given filename."""
abbreviations = set()
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), filename),encoding="utf-8") as fh:
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), filename), encoding="utf-8") as fh:
for line in fh:
line = line.strip()
if line.startswith("#"):
Expand Down

0 comments on commit 6fbd9b3

Please sign in to comment.