Diverse Code Cleanups

*Code wurde PEP-8 gerecht formatiert
* Kleine Fehler die der PyCharm Inspector beanstandet wurden korrigiert
This commit is contained in:
Christian Berg
2014-11-26 16:04:52 +01:00
committed by Christian Berg
parent f34281089d
commit 86a0db050d
76 changed files with 619 additions and 528 deletions

View File

@@ -1,8 +1,8 @@
'''
"""
Created on 19.10.2011
@author: christian
'''
"""
from BeautifulSoup import BeautifulSoup
@@ -46,10 +46,10 @@ class HtmlCleaner(object):
self.clean_attributes(tag)
def clean_html(self, fragment=''):
'''
"""
Reparses and cleans the html from XSS Attacks until it stops changing.
@param fragment:
'''
"""
while True:
soup = BeautifulSoup(fragment)
self.tag_removed = False