[Spice-devel] [spice-common 2/5] codegen: Fix 'registred' typo
Pavel Grunt
pgrunt at redhat.com
Thu Jun 23 12:04:37 UTC 2016
On Thu, 2016-06-23 at 12:57 +0200, Christophe Fergeau wrote:
Acked-by: Pavel Grunt <pgrunt at redhat.com>
> ---
> 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)
More information about the Spice-devel
mailing list