diff options
author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2009-04-22 12:42:37 +0000 |
---|---|---|
committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2009-04-22 12:42:37 +0000 |
commit | 678fa9fa1074556f861488f422cf68aff68ff0dc (patch) | |
tree | 0fb511b43d37419235cd57f630dc17686d08dd6d /docutils/nodes.py | |
parent | 864874f0fe8c9876de35c3c223c09caa362a3e50 (diff) | |
download | docutils-678fa9fa1074556f861488f422cf68aff68ff0dc.tar.gz |
Make Node a new-style class
Patch sent to docutils-devel by Naoki INADA:
new-style class is faster on isinstance() and uses less memory
The second part (Caching NestedStateMachine) still waits for a review by
someone who knows about parser design well.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5914 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/nodes.py')
-rw-r--r-- | docutils/nodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docutils/nodes.py b/docutils/nodes.py index 2f2389542..7cb6c9d61 100644 --- a/docutils/nodes.py +++ b/docutils/nodes.py @@ -32,7 +32,7 @@ import unicodedata # Functional Node Base Classes # ============================== -class Node: +class Node(object): """Abstract base class of nodes in a document tree.""" |