This is an automated email from the ASF dual-hosted git repository. jdanek pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/qpid-python.git
commit 36eec7986b3d1f9145a05ffe569d81e10bc96542 Author: Jiri Daněk <jda...@redhat.com> AuthorDate: Sat Apr 8 18:02:37 2023 +0200 QPID-8631: `rfc822.unquote` -> `email.utils.unquote` --- qpid/mimetype.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qpid/mimetype.py b/qpid/mimetype.py index f512996..1c428b5 100644 --- a/qpid/mimetype.py +++ b/qpid/mimetype.py @@ -16,7 +16,7 @@ # specific language governing permissions and limitations # under the License. # -import re, rfc822 +import re, email.utils from lexer import Lexicon, LexError from parser import Parser, ParseError @@ -96,7 +96,7 @@ class MimeTypeParser(Parser): if self.matches(TOKEN): return self.eat().value elif self.matches(STRING): - return rfc822.unquote(self.eat().value) + return email.utils.unquote(self.eat().value) else: raise ParseError(self.next(), TOKEN, STRING) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org