[Spice-devel] [spice-common 2/5] codegen: Fix 'registred' typo
Christophe Fergeau
cfergeau at redhat.com
Thu Jun 23 10:57:18 UTC 2016
---
python_modules/ptypes.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py
index 74f3e55..eefd359 100644
--- a/python_modules/ptypes.py
+++ b/python_modules/ptypes.py
@@ -139,7 +139,7 @@ def fix_attributes(attribute_list):
class Type:
def __init__(self):
self.attributes = {}
- self.registred = False
+ self.registered = False
self.name = None
def has_name(self):
@@ -196,9 +196,9 @@ class Type:
return self
def register(self):
- if self.registred or self.name == None:
+ if self.registered or self.name == None:
return
- self.registred = True
+ self.registered = True
if self.name in _types_by_name:
raise Exception("Type %s already defined" % self.name)
_types.append(self)
--
2.7.4
More information about the Spice-devel
mailing list