From: Eric S. Raymond Date: Thu, 19 Oct 2006 16:17:04 +0000 (+0000) Subject: Confine the regexp syntax error. X-Git-Tag: 1.0~12 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=d48d77e4e2f923457d9b2cb01343d8648a14dbd2;p=ctopy.git Confine the regexp syntax error. --- 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"),