Find the real name of the magic.
(magic_func)
| 165 | |
| 166 | |
| 167 | def real_name(magic_func): |
| 168 | """ Find the real name of the magic. |
| 169 | """ |
| 170 | magic_name = magic_func.__name__ |
| 171 | if magic_name.startswith('magic_'): |
| 172 | magic_name = magic_name[len('magic_'):] |
| 173 | return getattr(magic_func, 'argcmd_name', magic_name) |
| 174 | |
| 175 | |
| 176 | class ArgDecorator(object): |
no outgoing calls