summaryrefslogtreecommitdiff
path: root/src/handler.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/handler.py')
-rw-r--r--src/handler.py4
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)