]> thyrsus.com Git - ctopy.git/commitdiff
Confine the regexp syntax error.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 19 Oct 2006 16:17:04 +0000 (16:17 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 19 Oct 2006 16:17:04 +0000 (16:17 +0000)
ctopy

diff --git a/ctopy b/ctopy
index 097dfccd4e4466756ca3c420c1ed898917a65db1..939b107ed68e8dc7fac277f8dda37e7f812b9875 100755 (executable)
--- 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"),