Changeset 36 for trunk

Show
Ignore:
Timestamp:
26/10/04 13:02:15 (8 years ago)
Author:
steve
Message:

fixed recursion limit bug

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/airspeed.py

    r33 r36  
    190190 
    191191class Text(_Element): 
    192     PLAIN = re.compile(r'((?:[^\\\$#]|\\[\$#])+|\$[^!\{a-z0-9_]|\$$|\\.)(.*)$', re.S + re.I) 
     192    PLAIN = re.compile(r'((?:[^\\\$#]+|\\[\$#])+|\$[^!\{a-z0-9_]|\$$|\\.)(.*)$', re.S + re.I) 
    193193    ESCAPED_CHAR = re.compile(r'\\([\\\$#])') 
    194194 
  • trunk/airspeed_test.py

    r35 r36  
    411411 
    412412    def test_large_areas_of_text_handled_without_error(self): 
    413         text = "qwerty uiop asdfgh jkl zxcvbnm. 1234" 
    414         for count in range(1,20): 
    415             text = text + text 
    416             template = airspeed.Template(text) 
     413        text = "qwerty uiop asdfgh jkl zxcvbnm. 1234" * 300 
     414        template = airspeed.Template(text) 
    417415        self.assertEquals(text, template.merge({})) 
    418416