Skip to content

Commit

Permalink
Remove old Python 2 compatibility code
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Sep 18, 2022
1 parent 3256773 commit ba187d1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tinycss2/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,8 @@ def __init__(self, source_line, source_column):
self.source_line = source_line
self.source_column = source_column

if str is bytes: # pragma: no cover
def __repr__(self):
return self.repr_format.format(self=self).encode('utf8')
else: # pragma: no cover
def __repr__(self):
return self.repr_format.format(self=self)
def __repr__(self):
return self.repr_format.format(self=self)

def serialize(self):
"""Serialize this node to CSS syntax and return a Unicode string."""
Expand Down

0 comments on commit ba187d1

Please sign in to comment.