#NEWLINE# def make_identifier( number ) : #NEWLINE# #INDENT# '\n    Encodes a number as an identifier.\n    ' #NEWLINE# if ( not isinstance ( number , six . integer_types ) ) : #NEWLINE# #INDENT# raise ValueError ( ( 'You can only make identifiers out of integers (not %r)' % number ) ) #NEWLINE# #UNINDENT# if ( number < 0 ) : #NEWLINE# #INDENT# raise ValueError ( ( 'You cannot make identifiers out of negative numbers: %r' % number ) ) #NEWLINE# #UNINDENT# result = [ ] #NEWLINE# while number : #NEWLINE# #INDENT# next = ( next % base ) #NEWLINE# result . append ( good_characters [ next ] ) #NEWLINE# number = ( number // base ) #NEWLINE# #UNINDENT# return '' . join ( result )