summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2016-12-19 20:47:16 -0500
committerLeonard Richardson <leonardr@segfault.org>2016-12-19 20:47:16 -0500
commitaff20748ebba3c685ff23042024b15d67f47214b (patch)
tree594b7e02f08037c4681c3fa127796fbc6282e235
parente0b200dfa8d9282cd3d2c170ba11404c7839c9dc (diff)
parent35592f4a1c7d88d849c63a17c583a1a2b03e2106 (diff)
downloadbeautifulsoup4-aff20748ebba3c685ff23042024b15d67f47214b.tar.gz
Indentation change contributed by Pranav Salunke.
-rw-r--r--bs4/dammit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bs4/dammit.py b/bs4/dammit.py
index 2bf67f7..7965565 100644
--- a/bs4/dammit.py
+++ b/bs4/dammit.py
@@ -310,7 +310,7 @@ class EncodingDetector:
else:
xml_endpos = 1024
html_endpos = max(2048, int(len(markup) * 0.05))
-
+
declared_encoding = None
declared_encoding_match = xml_encoding_re.search(markup, endpos=xml_endpos)
if not declared_encoding_match and is_html:
@@ -736,7 +736,7 @@ class UnicodeDammit:
0xde : b'\xc3\x9e', # Þ
0xdf : b'\xc3\x9f', # ß
0xe0 : b'\xc3\xa0', # à
- 0xe1 : b'\xa1', # á
+ 0xe1 : b'\xa1', # á
0xe2 : b'\xc3\xa2', # â
0xe3 : b'\xc3\xa3', # ã
0xe4 : b'\xc3\xa4', # ä