Skip to content

Commit e44d00c

Browse files
authored
Merge pull request #51 from adobe-apiplatform/v2
prepare for v2.6 - unicode fixes
2 parents 551f55f + 7938f93 commit e44d00c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

HISTORY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,9 @@ Enhancement release:
100100
* (No Issue)
101101
* Read the wall clock to return an accurate "total time" in the `UnavailableError` (and associated logging).
102102

103+
### Version 2.6
103104

105+
Bug fix release:
106+
107+
* [Issue 50](https://github.com/adobe-apiplatform/umapi-client.py/issues/50)
108+
* Unicode input for email produced error strings that were incorrectly encoded, so clients crashed trying to use them.

umapi_client/functional.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,10 @@ def _validate(cls, email=None, username=None, domain=None):
7777
:param domain: a domain
7878
'''
7979
if email and not cls._email_regex.match(email):
80-
email = email.encode('utf-8')
8180
raise ValueError("'%s': Illegal email format (must be ascii, unquoted, with no comment part)" % (email,))
8281
if domain and not cls._domain_regex.match(domain):
83-
domain = domain.encode('utf-8')
8482
raise ValueError("'%s': Illegal domain format" % (domain,))
8583
if username and not cls._username_regex.match(username):
86-
username = username.encode('utf-8')
8784
raise ValueError("'%s': Illegal username format (must be unquoted email local part)" % (username,))
8885

8986
def __init__(self, id_type=IdentityTypes.adobeID, email=None, username=None, domain=None, **kwargs):

umapi_client/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1919
# SOFTWARE.
2020

21-
__version__ = "2.5.2"
21+
__version__ = "2.6"

0 commit comments

Comments
 (0)