Skip to content

Commit

Permalink
fix landau
Browse files Browse the repository at this point in the history
  • Loading branch information
domainname committed Mar 23, 2022
1 parent c97d413 commit 245e51a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cndict/iciba.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import re
import urllib
import urllib.parse
import urllib.request

from cndict.utils import *

Expand Down
1 change: 1 addition & 0 deletions cndict/landau.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def lookup(word, *args):
raise DictLookupError('file {} not found or not executable.'.format(cmd))

result = []
definition = definition.decode('utf-8')
definition = definition.split('\n相关词组:\n')[0]
result = definition.split('\n')
if is_english(word):
Expand Down

0 comments on commit 245e51a

Please sign in to comment.