def find_magic(self, magic_name, magic_kind='line'):
    "Find and return a magic of the given type by name.\n\n        Returns None if the magic isn't found."
    return self.magics_manager.magics[magic_kind].get(magic_name)
Find and return a magic of the given type by name.

Returns None if the magic isn't found.
def find_magic(self, magic_name, magic_kind='line'):
    "Find and return a magic of the given type by name.\n\n        Returns None if the magic isn't found."
    return self.magics_manager.magics[magic_kind].get(magic_name)