Skip to content

Commit

Permalink
cssfilter.py: Use a constant for the custom profile name.
Browse files Browse the repository at this point in the history
  • Loading branch information
listen2 committed Jul 10, 2012
1 parent cfbf41f commit 0c2008e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions r2/r2/lib/cssfilter.py
Expand Up @@ -79,8 +79,9 @@
'border-radius-topleft': r'{border-radius-part}', 'border-radius-topleft': r'{border-radius-part}',
} }


cssutils.profile.addProfile("Reddit compat", custom_values, custom_macros) reddit_profile = "reddit compat"
cssutils.profile.defaultProfiles.append("Reddit compat") cssutils.profile.addProfile(reddit_profile, custom_values, custom_macros)
cssutils.profile.defaultProfiles.append(reddit_profile)


def _build_regex_prefix(prefixes): def _build_regex_prefix(prefixes):
return re.compile("|".join("^-"+p+"-" for p in prefixes)) return re.compile("|".join("^-"+p+"-" for p in prefixes))
Expand Down

0 comments on commit 0c2008e

Please sign in to comment.