def print_results(args):
    """Print comics."""
    min_comics, filename = args
    with codecs.open(filename, 'a', 'utf-8') as fp:
        for name, url in sorted(load_result(json_file).items()):
            if name in exclude_comics:
                continue
            if has_gocomics_comic(name):
                prefix = u'# duplicate of gocomics '
            else:
                prefix = u''
            fp.write(u"%sadd(%r, %r)\n" % (
              prefix, str(truncate_name(name)), str(url))
            )
def print_results ( args ) : min_comics , filename = args with codecs . open ( filename , 'a' , 'utf-8' ) as fp : for name , url in sorted ( load_result ( json_file ) . items ( ) ) : if name in exclude_comics : continue if has_gocomics_comic ( name ) : prefix = u'# duplicate of gocomics ' else : prefix = u'' fp . write ( u"%sadd(%r, %r)\n" % ( prefix , str ( truncate_name ( name ) ) , str ( url ) ) )
Print comics.