Skip to content

Commit

Permalink
Fix "pattern" variable assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Mar 15, 2023
1 parent b12f01f commit 59ab86a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyphen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ def __init__(self, path):

# read nonstandard hyphen alternatives
if '/' in pattern and '=' in pattern:
factory = AlternativeParser(*pattern.split('/', 1))
pattern, alternative = pattern.split('/', 1)
factory = AlternativeParser(pattern, alternative)
else:
factory = int

Expand Down

0 comments on commit 59ab86a

Please sign in to comment.