Re: [Bug 1782416] Re: Python3 Compat Problem: "Cannot use a bytes pattern on a string-like object"

2018-07-19 Thread Scott Kitterman
I'm open to changes for type hinting. Scott K -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1782416 Title: Python3 Compat Problem: "Cannot use a bytes pattern on a string-like object" To manage

[Bug 1782416] Re: Python3 Compat Problem: "Cannot use a bytes pattern on a string-like object"

2018-07-19 Thread Thomas Ward
I had tried passing it bytes as well, with a similar failure. I will try again, but in my opinion adding type hinting might help those of us using an ODE to determine whether we are passing things properly by determining datatypes that are acceptable for which argument. -- You received this bug

[Bug 1782416] Re: Python3 Compat Problem: "Cannot use a bytes pattern on a string-like object"

2018-07-18 Thread Scott Kitterman
This is true pretty much throughout dkimpy when used with python3. It's not particularly feasible to change it. I'm open to suggestions on improved documentation. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1782416] Re: Python3 Compat Problem: "Cannot use a bytes pattern on a string-like object"

2018-07-18 Thread Scott Kitterman
If you feed it bytes, it works fine: >>> print(message) b'Authentication-Results: lists.example.org; arc=none; spf=pass smtp.mfrom=jqd@d1.example; dkim=pass (1024-bit key) header.i=@d1.example; dmarc=pass\nReceived: from localhost\nMessage-ID: \nDate: Mon, 01 Jan 2011 01:02:03 +0400\nFrom:

[Bug 1782416] Re: Python3 Compat Problem: "Cannot use a bytes pattern on a string-like object"

2018-07-18 Thread Thomas Ward
Testing the package in `python3-dkim` this same problem occurs. Adding as "Affects dkimpy" in Ubuntu. ** Also affects: dkimpy (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.