Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 0c2008e05b474fbb8641e5cd1bd40241d0147b98 1 parent cfbf41f
@listen2 authored
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))
Please sign in to comment.
Something went wrong with that request. Please try again.