Fixing spelling error on MIME Type Errors and PEP8

It currently returns an error with the text "Unknow mimetype." This
changes that to be "Unknown mimetype". Also fixes PEP8 reported by
the gate.

Change-Id: I7ac44f9cba713ddb352aab2a5698598a4da4f612
This commit is contained in:
Jason Myers 2015-02-27 08:37:05 -06:00
parent 8710dabb65
commit 80e0c2ad9a

View File

@ -231,7 +231,7 @@ def args_from_body(funcdef, body, mimetype):
elif mimetype in restxml.accept_content_types:
dataformat = restxml
else:
raise ValueError("Unknow mimetype: %s" % mimetype)
raise ValueError("Unknown mimetype: %s" % mimetype)
try:
kw = dataformat.parse(