def _maketrans(complement_mapping):
 before = ''.join(complement_mapping.keys())
 after = ''.join(complement_mapping.values())
 before += before.lower()
 after += after.lower()
 if (sys.version_info[0] == 3):
  return str.maketrans(before, after)
 else:
  return string.maketrans(before, after)

def _maketrans ( complement_mapping ) : before = '' . join ( complement_mapping . keys ( ) ) after = '' . join ( complement_mapping . values ( ) ) before += before . lower ( ) after += after . lower ( ) if ( sys . version_info [ 0 ] == 3 ) : return str . maketrans ( before , after ) else : return string . maketrans ( before , after )
makes a python string translation table .