File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -15,19 +15,24 @@ class UnicodeProperty(object):
15
15
"""Abstract base class for Unicode properties."""
16
16
17
17
def __init__ (self ):
18
- raise NotImplemented
18
+ raise NotImplementedError (
19
+ "UnicodeProperty.__init__ is not implemented." )
19
20
20
21
def get_default_value (self ):
21
- raise NotImplemented
22
+ raise NotImplementedError (
23
+ "UnicodeProperty.get_default_value is not implemented." )
22
24
23
25
def get_value (self , cp ):
24
- raise NotImplemented
26
+ raise NotImplementedError (
27
+ "UnicodeProperty.get_value is not implemented." )
25
28
26
29
def to_numeric_value (self , value ):
27
- raise NotImplemented
30
+ raise NotImplementedError (
31
+ "UnicodeProperty.to_numeric_value is not implemented." )
28
32
29
33
def get_numeric_value (self , cp ):
30
- raise NotImplemented
34
+ raise NotImplementedError (
35
+ "UnicodeProperty.get_numeric_value is not implemented." )
31
36
32
37
class GraphemeClusterBreakPropertyTable (UnicodeProperty ):
33
38
"""Grapheme_Cluster_Break property."""
Original file line number Diff line number Diff line change @@ -561,13 +561,13 @@ class ASTNode(object):
561
561
"""Abstract base class for template AST nodes"""
562
562
563
563
def __init__ (self ):
564
- raise NotImplemented
564
+ raise NotImplementedError ( "ASTNode.__init__ is not implemented." )
565
565
566
566
def execute (self , context ):
567
- raise NotImplemented
567
+ raise NotImplementedError ( "ASTNode.execute is not implemented." )
568
568
569
569
def __str__ (self , indent = '' ):
570
- raise NotImplemented
570
+ raise NotImplementedError ( "ASTNode.__str__ is not implemented." )
571
571
572
572
def format_children (self , indent ):
573
573
if not self .children :
You can’t perform that action at this time.
0 commit comments