diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-09-03 18:01:43 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-09-03 18:01:43 +0000 |
commit | 17eb99eea718191b619277754bf15e6a7554d916 (patch) | |
tree | aa39d3583025b4a49f7492245981cd519c6855e9 /src/handler.py | |
parent | 43654505fb2efa3994081e68613e5bd8dd033660 (diff) | |
download | poezio-17eb99eea718191b619277754bf15e6a7554d916.tar.gz poezio-17eb99eea718191b619277754bf15e6a7554d916.tar.bz2 poezio-17eb99eea718191b619277754bf15e6a7554d916.tar.xz poezio-17eb99eea718191b619277754bf15e6a7554d916.zip |
python 3 only. Fixes all EncodingError bugs :))))
Diffstat (limited to 'src/handler.py')
-rw-r--r-- | src/handler.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/handler.py b/src/handler.py index 5542a7a1..dd848061 100644 --- a/src/handler.py +++ b/src/handler.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - # Copyright 2009, 2010 Erwan Briand # Copyright 2010, Florent Le Coz <louizatakk@fedoraproject.org> @@ -80,6 +78,6 @@ class Handler(Singleton): def emit(self, signal, **kwargs): """Emit a signal.""" - if self.__signals__.has_key(signal): + if signal in self.__signals__: for func in self.__signals__[signal]: func(**kwargs) |