Show More
@@ -2023,19 +2023,6 b' Currently the magic system has the following functions:\\n"""' | |||||
2023 | 'print macro_name'. |
|
2023 | 'print macro_name'. | |
2024 |
|
2024 | |||
2025 | """ |
|
2025 | """ | |
2026 | # FIXME: This function has become a convoluted mess. It needs a |
|
|||
2027 | # ground-up rewrite with clean, simple logic. |
|
|||
2028 | def make_filename(arg): |
|
|||
2029 | "Make a filename from the given args" |
|
|||
2030 | try: |
|
|||
2031 | filename = get_py_filename(arg) |
|
|||
2032 | except IOError: |
|
|||
2033 | if args.endswith('.py'): |
|
|||
2034 | filename = arg |
|
|||
2035 | else: |
|
|||
2036 | filename = None |
|
|||
2037 | return filename |
|
|||
2038 |
|
||||
2039 | opts,args = self.parse_options(parameter_s,'r',mode='list') |
|
2026 | opts,args = self.parse_options(parameter_s,'r',mode='list') | |
2040 | if not args: # List existing macros |
|
2027 | if not args: # List existing macros | |
2041 | return sorted(k for k,v in self.shell.user_ns.iteritems() if\ |
|
2028 | return sorted(k for k,v in self.shell.user_ns.iteritems() if\ |
General Comments 0
You need to be logged in to leave comments.
Login now