Skip to content

Commit

Permalink
Avoid u'' for 3.2's sake.
Browse files Browse the repository at this point in the history
  • Loading branch information
eevee committed Dec 10, 2014
1 parent f957acd commit 5c8345d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scss/rule.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals

import logging
import re
Expand Down Expand Up @@ -77,6 +78,8 @@ def __init__(
self.descendants = 0

def __repr__(self):
# TODO probably want to encode this with string_escape on python 2, and
# similar elsewhere, especially since this file has unicode_literals
return "<SassRule %s, %d props>" % (
self.ancestry,
len(self.properties),
Expand Down Expand Up @@ -245,7 +248,7 @@ def parse(cls, prop, has_contents=False):
# e.g. identifiers aren't supposed to begin with three hyphens.
# But we don't care, and will just spit it back out anyway.
m = re.match(
u'@(else if|[-_a-zA-Z0-9\U00000080-\U0010FFFF]*)\\b',
'@(else if|[-_a-zA-Z0-9\U00000080-\U0010FFFF]*)\\b',
prop, re.I)
directive = m.group(0).lower()
argument = prop[len(directive):].strip()
Expand Down

0 comments on commit 5c8345d

Please sign in to comment.