Short code cleanup.
This commit is contained in:
parent
1845fe2ba0
commit
4ec79d2d9a
|
@ -18,10 +18,7 @@ def set_dim_handler(dimname, handler):
|
||||||
def get_dim_handler(dimname):
|
def get_dim_handler(dimname):
|
||||||
"""Get the handler for the given dimension."""
|
"""Get the handler for the given dimension."""
|
||||||
global _dim_annotation_handlers
|
global _dim_annotation_handlers
|
||||||
if _dim_annotation_handlers.has_key(dimname):
|
return _dim_annotation_handlers.get(dimname, None)
|
||||||
return _dim_annotation_handlers[dimname]
|
|
||||||
else:
|
|
||||||
return None
|
|
||||||
|
|
||||||
|
|
||||||
class AnnotationHandler:
|
class AnnotationHandler:
|
||||||
|
|
Reference in New Issue