Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Short code cleanup.

This commit is contained in:
Einar Ryeng 2011-06-02 15:14:21 +00:00
parent 1845fe2ba0
commit 4ec79d2d9a
1 changed files with 1 additions and 4 deletions

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: