def base36_to_int(s):
 if (len(s) > 13):
  raise ValueError(u'Base36 input too large')
 value = int(s, 36)
 if ((not six.PY3) and (value > sys.maxint)):
  raise ValueError(u'Base36 input too large')
 return value

def base36_to_int ( s ) : if ( len ( s ) > 13 ) : raise ValueError ( u'Base36 input too large' ) value = int ( s , 36 ) if ( ( not six . PY3 ) and ( value > sys . maxint ) ) : raise ValueError ( u'Base36 input too large' ) return value
converts a base 36 string to an int .