<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def _get_post_data(cls, args):
        '''Return the post data.'''
        if args.post_data:
            return args.post_data
        elif args.post_file:
            return args.post_file.read()