def parse_cropbox(cropbox):
 if isinstance(cropbox, six.text_type):
  return tuple([int(x.strip()) for x in cropbox.split(',')])
 else:
  return tuple(cropbox)

def parse_cropbox ( cropbox ) : if isinstance ( cropbox , six . text_type ) : return tuple ( [ int ( x . strip ( ) ) for x in cropbox . split ( ',' ) ] ) else : return tuple ( cropbox )
returns x .