##// END OF EJS Templates
Fix# 11559 weird regexp in magic writefile
Partha P. Mukherjee -
Show More
@@ -825,7 +825,7 b' class OSMagics(Magics):'
825 825 The file will be overwritten unless the -a (--append) flag is specified.
826 826 """
827 827 args = magic_arguments.parse_argstring(self.writefile, line)
828 if re.match(r'[\'*\']|["*"]', args.filename):
828 if re.match(r'^(\'.*\')|(".*")$', args.filename):
829 829 filename = os.path.expanduser(args.filename[1:-1])
830 830 else:
831 831 filename = os.path.expanduser(args.filename)
General Comments 0
You need to be logged in to leave comments. Login now