diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2015-11-23 23:14:17 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2015-11-23 23:14:17 +0100 |
commit | 4c2a9d256623360b34a37dbde19531919af41c21 (patch) | |
tree | fa8f87435d8108d071963283aea0b6bb0f0da62a /watchnews/css.py | |
parent | 6b37966de51c01e6a55dd0188d9d2ac953559c14 (diff) | |
download | watchnews-4c2a9d256623360b34a37dbde19531919af41c21.tar.gz watchnews-4c2a9d256623360b34a37dbde19531919af41c21.zip |
replace all " with '
Diffstat (limited to 'watchnews/css.py')
-rw-r--r-- | watchnews/css.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/watchnews/css.py b/watchnews/css.py index b32a274..825cd5e 100644 --- a/watchnews/css.py +++ b/watchnews/css.py @@ -10,20 +10,20 @@ class Rule: def _f(self, prop): key, value = prop - key = re.sub("([A-Z])", "-\\1", key).lower() - return " {}: {};".format(key, value) + key = re.sub('([A-Z])', '-\\1', key).lower() + return ' {}: {};'.format(key, value) def __format__(self): - result = " ".join(self.path) - result += " {\n" - result += "\n".join(map(self._f, self.properties.items())) - result += "\n}\n" + result = ' '.join(self.path) + result += ' {\n' + result += '\n'.join(map(self._f, self.properties.items())) + result += '\n}\n' return result def string(*rules): - return "\n".join(map(lambda r: r.__format__(), rules)) + return '\n'.join(map(lambda r: r.__format__(), rules)) -if __name__ == "__main__": - print("CSS Demo") - print(Rule(".foo", "#blah", backgroundColor="red").__format__()) +if __name__ == '__main__': + print('CSS Demo') + print(Rule('.foo', '#blah', backgroundColor='red').__format__()) |