Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
keeleliin
word_cloud_est
Commits
6100640c
Commit
6100640c
authored
Dec 05, 2015
by
Raphael Boidol
Browse files
use pythonic form of key access
Has the advantage of producing fewer checks, as most words will be multiples.
parent
ccdb542c
Changes
1
Hide whitespace changes
Inline
Side-by-side
wordcloud/wordcloud.py
View file @
6100640c
...
...
@@ -359,9 +359,9 @@ class WordCloud(object):
continue
# Look in lowercase dict.
if
word_lower
in
d
:
try
:
d2
=
d
[
word_lower
]
e
lse
:
e
xcept
KeyError
:
d2
=
{}
d
[
word_lower
]
=
d2
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment