[Spice-commits] python_modules/ptypes.py

Frediano Ziglio fziglio at kemper.freedesktop.org
Fri Jun 24 06:48:15 UTC 2016


 python_modules/ptypes.py |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 3029eae630a0b41ff07a9e6558b90e67f61209d8
Author: Christophe Fergeau <cfergeau at redhat.com>
Date:   Thu Jun 23 12:57:18 2016 +0200

    codegen: Fix 'registred' typo
    
    Acked-by: Pavel Grunt <pgrunt at redhat.com>

diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py
index f4a09f7..63a7a2f 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)


More information about the Spice-commits mailing list