Changeset 389 for trunk/game/scripts


Ignore:
Timestamp:
11/19/09 18:24:05 (10 years ago)
Author:
eliedebrauwer
Message:

Ticket #187. Patch by eliedebrauwer: Improved python code parsing from the console. comment[s:trac, t:187]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/console.py

    r323 r389  
    106106            end_python = command[python_matches.end() + 1:] 
    107107            try: 
    108                 result = str(eval(end_python)) 
     108                result = str(eval(compile(end_python,'<string>','single'))) 
    109109            except Exception, e: 
    110110                result = str(e) 
Note: See TracChangeset for help on using the changeset viewer.