Contact: fumanchu@aminus.org

Log in as guest/geniusql to create tickets

Changeset 215

Show
Ignore:
Timestamp:
11/05/07 16:35:12
Author:
fumanchu
Message:

Allow named_opcodes to take a string (e.g. a co_code string).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/geniusql/codewalk.py

    r159 r215  
    3838def named_opcodes(bits): 
    3939    """Change initial numeric opcode bits to their named equivalents.""" 
     40    if isinstance(bits, basestring): 
     41        bits = map(ord, bits) 
    4042    bitnums = [] 
    4143    bits = iter(bits)