Skip to content

Commit

Permalink
Update htmlcssgrade.py
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
MrMazzone committed Apr 1, 2022
1 parent b292862 commit d6b31e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htmlcssgrade.py
Original file line number Diff line number Diff line change
@@ -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
#######################
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit d6b31e8

Please sign in to comment.