def dedent_description(pkg_info):
description = pkg_info['<STR_LIT>']<EOL>surrogates = False<EOL>if not isinstance(description, str):<EOL><INDENT>surrogates = True<EOL>description = pkginfo_unicode(pkg_info, '<STR_LIT>')<EOL><DEDENT>description_lines = description.splitlines()<EOL>description_dedent = '<STR_LIT:\n>'.join(<EOL>(description_lines[<NUM_LIT:0>].lstrip(),<EOL>textwrap.dedent('<STR_LIT:\n>'.join(description_lines[<NUM_LIT:1>:])),<EOL>'<STR_LIT:\n>'))<EOL>if surrogates:<EOL><INDENT>description_dedent = description_dedent.encode("<STR_LIT:utf8>").decode("<STR_LIT:ascii>", "<STR_LIT>")<EOL><DEDENT>return description_dedent<EOL>
Dedent and convert pkg_info['Description'] to Unicode.