From d48d77e4e2f923457d9b2cb01343d8648a14dbd2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 19 Oct 2006 16:17:04 +0000 Subject: [PATCH] Confine the regexp syntax error. --- ctopy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ctopy b/ctopy index 097dfcc..939b107 100755 --- a/ctopy +++ b/ctopy @@ -29,6 +29,7 @@ shorthands = { # C functions and constants to be mapped into Python standard library bindings. funmappings = ( + # OK before this point # File object methods (from C stdlib). (r"\bfclose\(%(farg)s\)", r"\1.close()", None), (r"\bfflush\(%(farg)s\)", r"\1.flush()", None), @@ -84,6 +85,7 @@ funmappings = ( (r"\bbeep\(", r"curses.beep(", r"curses"), (r"\bbkgd\(", r"stdscr.bkgd(", r"curses"), (r"\bbkgdset\(", r"stsdcr.bkgdset(", r"curses"), + # OK after this point #bkgrnd curs_bkgrnd(3X) #bkgrndset curs_bkgrnd(3X) (r"\bborder\(", r"stdscr.border(", r"curses"), -- 2.43.0