Browse files

cssfilter.py: Use a constant for the custom profile name.

  • Loading branch information...
1 parent cfbf41f commit 0c2008e05b474fbb8641e5cd1bd40241d0147b98 @listen2 committed Jul 10, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 r2/r2/lib/cssfilter.py
View
5 r2/r2/lib/cssfilter.py
@@ -79,8 +79,9 @@
'border-radius-topleft': r'{border-radius-part}',
}
-cssutils.profile.addProfile("Reddit compat", custom_values, custom_macros)
-cssutils.profile.defaultProfiles.append("Reddit compat")
+reddit_profile = "reddit compat"
+cssutils.profile.addProfile(reddit_profile, custom_values, custom_macros)
+cssutils.profile.defaultProfiles.append(reddit_profile)
def _build_regex_prefix(prefixes):
return re.compile("|".join("^-"+p+"-" for p in prefixes))

0 comments on commit 0c2008e

Please sign in to comment.