[spice-common 2/5] codegen: Fix 'registred' typo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]