diff --git a/src/tinycss/fonts3.py b/src/tinycss/fonts3.py index 2853de520f..e736d9116a 100644 --- a/src/tinycss/fonts3.py +++ b/src/tinycss/fonts3.py @@ -7,7 +7,7 @@ __license__ = 'GPL v3' __copyright__ = '2014, Kovid Goyal ' -from .css21 import CSS21Parser, ParseError +from tinycss.css21 import CSS21Parser, ParseError class FontFaceRule(object): @@ -18,6 +18,10 @@ class FontFaceRule(object): self.line = line self.column = column + def __repr__(self): + return ('<{0.__class__.__name__} at {0.line}:{0.column}>' + .format(self)) + class CSSFonts3Parser(CSS21Parser): ''' Parse @font-face rules from the CSS 3 fonts module '''