def write_regular(self, title=None, body=None, **args): 
        if title:
            args['title'] = title
        if body: 
            args['body'] = body 
        args = self._fixnames(args)
        if not 'title' in args and not 'body' in args:
            raise TumblrError("Must supply either body or title argument")

        self.auth_check()
        args['type'] = 'regular'
        return self._write(args)
dataset/ETHPy150Open ialex/opentumblr-qt/opentumblrqt/tumblr.py/Api.write_regular/original