A couple pep2html.py issues (#2080)

This commit is contained in:
Dimitri Papadopoulos Orfanos 2021-09-21 21:57:20 +02:00 committed by GitHub
parent 29344b5fed
commit 40ef5625b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ except ImportError:
from docutils import core, nodes, utils
from docutils.readers import standalone
from docutils.transforms import peps, references, misc, frontmatter, Transform
from docutils.transforms import peps, frontmatter, Transform
from docutils.parsers import rst
class DataError(Exception):
@ -538,7 +538,7 @@ def make_html(inpath, verbose=0):
% (inpath, pep_type)), file=sys.stderr)
sys.stdout.flush()
return None
elif PEP_TYPE_DISPATCH[pep_type] == None:
elif PEP_TYPE_DISPATCH[pep_type] is None:
pep_type_error(inpath, pep_type)
return None
outpath = os.path.splitext(inpath)[0] + ".html"