From c9d05b3a63a812b64d44e4e675ce931718fe4c1b Mon Sep 17 00:00:00 2001 From: kirbylife Date: Mon, 24 Jun 2019 11:23:35 -0500 Subject: [PATCH] now works with python3 --- cssify/cssify.py | 83 ++++++++++++++++++++++++++---------------------- 1 file changed, 45 insertions(+), 38 deletions(-) diff --git a/cssify/cssify.py b/cssify/cssify.py index 5f35f36..e9751f3 100755 --- a/cssify/cssify.py +++ b/cssify/cssify.py @@ -5,26 +5,25 @@ from optparse import OptionParser sub_regexes = { - "tag": "([a-zA-Z][a-zA-Z0-9]{0,10}|\*)", - "attribute": "[.a-zA-Z_:][-\w:.]*(\(\))?)", - "value": "\s*[\w/:][-/\w\s,:;.]*" + "tag": r"([a-zA-Z][a-zA-Z0-9]{0,10}|\*)", + "attribute": r"[.a-zA-Z_:][-\w:.]*(\(\))?)", + "value": r"\s*[\w/:][-/\w\s,:;.]*" } validation_re = ( - "(?P" - "(" - "^id\([\"\']?(?P%(value)s)[\"\']?\)" # special case! id(idValue) - "|" - "(?P