From d6b31e87f92d0327c3fa080dadf6fe12abbd65a6 Mon Sep 17 00:00:00 2001 From: Joe Mazzone Date: Fri, 1 Apr 2022 09:27:20 -0400 Subject: [PATCH] Update htmlcssgrade.py Small fixes --- htmlcssgrade.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htmlcssgrade.py b/htmlcssgrade.py index f9bb54d..6d0a0df 100644 --- a/htmlcssgrade.py +++ b/htmlcssgrade.py @@ -1,6 +1,6 @@ ####################### # HTML/CSS Grade -# Version 1.0.0 +# Version 1.0.1 # Created by Joe Mazzone # Documentation: https://github.com/MrMazzone/HTML-CSS-Grade ####################### @@ -15,7 +15,7 @@ class HTML_Check: Properties ---------- filepath - the path to the file you are checking. - css_obj - the cssutils object being used. + html_obj - the BeautifulSoup object being used. code - text representation of the css file, which can be printed or parsed. Methods @@ -249,7 +249,7 @@ def check_num_declarations_equal(self, number): count += rule.style.cssText.count("\n")+1 return (count == number) - def get_num_declarations(self, number): + def get_num_declarations(self): """Gets number of declarations in CSS file""" count = 0 for rule in self.css_obj: