<s> VERSION = ( <NUM_LIT:0> , <NUM_LIT:5> , <NUM_LIT:2> , '<STR_LIT>' , <NUM_LIT:0> ) <EOL> def get_version ( version = None ) : <EOL> """<STR_LIT>""" <EOL> if version is None : <EOL> version = VERSION <EOL> assert len ( version ) == <NUM_LIT:5> <EOL> assert version [ <NUM_LIT:3> ] in ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> parts = <NUM_LIT:2> if version [ <NUM_LIT:2> ] == <NUM_LIT:0> else <NUM_LIT:3> <EOL> main = '<STR_LIT:.>' . join ( str ( x ) for x in version [ : parts ] ) <EOL> sub = '<STR_LIT>' <EOL> if version [ <NUM_LIT:3> ] != '<STR_LIT>' : <EOL> mapping = { '<STR_LIT>' : '<STR_LIT:a>' , '<STR_LIT>' : '<STR_LIT:b>' , '<STR_LIT>' : '<STR_LIT:c>' } <EOL> sub = mapping [ version [ <NUM_LIT:3> ] ] + str ( version [ <NUM_LIT:4> ] ) <EOL> return main + sub <EOL> __version__ = get_version ( ) </s>
