Skip to content

Commit

Permalink
updated configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
hitblast committed Feb 17, 2024
1 parent 53b28ed commit e2ad342
Show file tree
Hide file tree
Showing 4 changed files with 228 additions and 226 deletions.
4 changes: 2 additions & 2 deletions avro/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
AVRO_SHORBORNO = set(DICT['avro']['shorborno'])
AVRO_KAR = DICT['avro']['kar']
AVRO_IGNORE = DICT['avro']['ignore']
EXCEPTIONS = DICT['avro']['exceptions']
AVRO_EXCEPTIONS = DICT['avro']['exceptions']

# Shortcuts for conversion (e.g. for Bijoy Keyboard support).
BIJOY_MAP = DICT['bijoy']
BIJOY_MAP = DICT['bijoy']['mappings']
2 changes: 1 addition & 1 deletion avro/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def _reverse_backend(text: str) -> str:
# Extension for the _reverse_backend() function.
@lru_cache
def _reverse_backend_ext(text: str) -> str:
exceptions = config.EXCEPTIONS.get(text, None)
exceptions = config.AVRO_EXCEPTIONS.get(text, None)

if not exceptions:
separated_texts = compiled_regex.split(text)
Expand Down
2 changes: 1 addition & 1 deletion avro/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


# Import local modules.
from .avrodict import *
from .dictionary import *
Loading

0 comments on commit e2ad342

Please sign in to comment.