Skip to content

Commit

Permalink
#86 One more attempt to fix a Windows Unicode heisenbug on Appveyor only
Browse files Browse the repository at this point in the history
  • Loading branch information
pombredanne committed Mar 11, 2016
1 parent f0cbb0e commit a3c0e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/licensedcode/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ def renumber_token_ids(rules_tokens_ids, dictionary, tokens_by_tid, frequencies_
# keep track of very common junk tokens: digits and single letters
very_common = set()
very_common_add = very_common.add
string_lowercase = unicode(string.lowercase)
string_lowercase = unicode(string.lowercase, encoding='utf-8')
for tid, token in enumerate(tokens_by_tid):
# DIGIT TOKENS: Treat tokens composed only of digits as common junk
# SINGLE ASCII LETTER TOKENS: Treat single ASCII letter tokens as common junk
Expand Down

0 comments on commit a3c0e25

Please sign in to comment.