Some whitespace fixes to make newer versions of flake8 happy
This commit is contained in:
parent
26abe21486
commit
e77a4481f8
4 changed files with 9 additions and 0 deletions
|
|
@ -405,6 +405,7 @@ default_properties = { # excluded all properties with 'auto' as default
|
||||||
|
|
||||||
def isSameSign(a, b): return (a <= 0 and b <= 0) or (a >= 0 and b >= 0)
|
def isSameSign(a, b): return (a <= 0 and b <= 0) or (a >= 0 and b >= 0)
|
||||||
|
|
||||||
|
|
||||||
scinumber = re.compile(r"[-+]?(\d*\.?)?\d+[eE][-+]?\d+")
|
scinumber = re.compile(r"[-+]?(\d*\.?)?\d+[eE][-+]?\d+")
|
||||||
number = re.compile(r"[-+]?(\d*\.?)?\d+")
|
number = re.compile(r"[-+]?(\d*\.?)?\d+")
|
||||||
sciExponent = re.compile(r"[eE]([-+]?\d+)")
|
sciExponent = re.compile(r"[eE]([-+]?\d+)")
|
||||||
|
|
@ -1945,6 +1946,7 @@ def removeDefaultAttributeValues(node, options, tainted=set()):
|
||||||
|
|
||||||
return num
|
return num
|
||||||
|
|
||||||
|
|
||||||
rgb = re.compile(r"\s*rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*")
|
rgb = re.compile(r"\s*rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*")
|
||||||
rgbp = re.compile(r"\s*rgb\(\s*(\d*\.?\d+)%\s*,\s*(\d*\.?\d+)%\s*,\s*(\d*\.?\d+)%\s*\)\s*")
|
rgbp = re.compile(r"\s*rgb\(\s*(\d*\.?\d+)%\s*,\s*(\d*\.?\d+)%\s*,\s*(\d*\.?\d+)%\s*\)\s*")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,8 @@ class _EOF(object):
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return 'EOF'
|
return 'EOF'
|
||||||
|
|
||||||
|
|
||||||
EOF = _EOF()
|
EOF = _EOF()
|
||||||
|
|
||||||
lexicon = [
|
lexicon = [
|
||||||
|
|
@ -97,6 +99,7 @@ class Lexer(object):
|
||||||
break
|
break
|
||||||
yield (EOF, None)
|
yield (EOF, None)
|
||||||
|
|
||||||
|
|
||||||
svg_lexer = Lexer(lexicon)
|
svg_lexer = Lexer(lexicon)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,8 @@ class _EOF(object):
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return 'EOF'
|
return 'EOF'
|
||||||
|
|
||||||
|
|
||||||
EOF = _EOF()
|
EOF = _EOF()
|
||||||
|
|
||||||
lexicon = [
|
lexicon = [
|
||||||
|
|
@ -114,6 +116,7 @@ class Lexer(object):
|
||||||
break
|
break
|
||||||
yield (EOF, None)
|
yield (EOF, None)
|
||||||
|
|
||||||
|
|
||||||
svg_lexer = Lexer(lexicon)
|
svg_lexer = Lexer(lexicon)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,5 +52,6 @@ class ElementSelectorWithProperty(unittest.TestCase):
|
||||||
self.assertEqual(len(r[0]['properties']), 1, 'Property list for foo did not have 1')
|
self.assertEqual(len(r[0]['properties']), 1, 'Property list for foo did not have 1')
|
||||||
self.assertEqual(r[0]['properties']['bar'], 'baz', 'Property bar did not have baz value')
|
self.assertEqual(r[0]['properties']['bar'], 'baz', 'Property bar did not have baz value')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue