Short code cleanup.

This commit is contained in:
Einar Ryeng 2011-06-02 15:14:21 +00:00
parent 1845fe2ba0
commit 4ec79d2d9a

View File

@ -18,10 +18,7 @@ def set_dim_handler(dimname, handler):
def get_dim_handler(dimname):
"""Get the handler for the given dimension."""
global _dim_annotation_handlers
if _dim_annotation_handlers.has_key(dimname):
return _dim_annotation_handlers[dimname]
else:
return None
return _dim_annotation_handlers.get(dimname, None)
class AnnotationHandler: