|
| 1 | +from __future__importabsolute_import,division,unicode_literals |
| 2 | +fromsiximportwith_metaclass |
| 3 | + |
1 | 4 | importsys |
2 | 5 | importtypes |
3 | 6 |
|
@@ -444,7 +447,7 @@ def getMetaclass(use_metaclass, metaclass_func): |
444 | 447 | else: |
445 | 448 | returntype |
446 | 449 |
|
447 | | -classPhase(object,metaclass=getMetaclass(debug,log)): |
| 450 | +classPhase(with_metaclass(getMetaclass(debug,log))): |
448 | 451 | """Base class for helper object that implements each phase of processing |
449 | 452 | """ |
450 | 453 |
|
@@ -2686,7 +2689,7 @@ def impliedTagToken(name, type="EndTag", attributes = None, |
2686 | 2689 | selfClosing=False): |
2687 | 2690 | ifattributesisNone: |
2688 | 2691 | attributes= {} |
2689 | | -return {"type":tokenTypes[type],"name":str(name),"data":attributes, |
| 2692 | +return {"type":tokenTypes[type],"name":name,"data":attributes, |
2690 | 2693 | "selfClosing":selfClosing} |
2691 | 2694 |
|
2692 | 2695 | classParseError(Exception): |
|