Permalink
Browse files

unichr Fixed

  • Loading branch information...
il-vladislav committed Nov 15, 2012
1 parent 836446d commit ba8d922544ca0d29d697e265ee356b3eb1f4997f
Showing with 1 addition and 1 deletion.
  1. +1 −1 bs4/builder/_htmlparser.py
@@ -67,7 +67,7 @@ def handle_charref(self, name):
real_name = int(name)
try:
- data = unichr(real_name)
+ data = chr(real_name)
except (ValueError, OverflowError):
data = u"\N{REPLACEMENT CHARACTER}"

0 comments on commit ba8d922

Please sign in to comment.