diff pyrect/jitgrep.py @ 62:a05baa7dc7ba

modify I/O routine. use mmap. it's really faster than fgets ;-)
author Ryoma SHINYA <shinya@firefly.cr.ie.u-ryukyu.ac.jp>
date Fri, 05 Nov 2010 01:37:35 +0900
parents fd3d0b8326fe
children 4de11d799dee
line wrap: on
line diff
--- a/pyrect/jitgrep.py	Thu Nov 04 22:04:34 2010 +0900
+++ b/pyrect/jitgrep.py	Fri Nov 05 01:37:35 2010 +0900
@@ -62,7 +62,7 @@
         return
 
     if opts.time : start_time = time.time()
-    reg = Regexp(string)
+    reg = Regexp(".*"+string)
     if cbc:
         grept = CbCGREPTranslator(reg)
     elif opts.label: