{"action":"opened","issue":{"url":"https://api.github.com/repos/pyldap/pyldap/issues/63","repository_url":"https://api.github.com/repos/pyldap/pyldap","labels_url":"https://api.github.com/repos/pyldap/pyldap/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/pyldap/pyldap/issues/63/comments","events_url":"https://api.github.com/repos/pyldap/pyldap/issues/63/events","html_url":"https://github.com/pyldap/pyldap/issues/63","id":181591652,"number":63,"title":"python 3: Can not use string pattern on bytes like object.","user":{"login":"Firstyear","id":271005,"avatar_url":"https://avatars.githubusercontent.com/u/271005?v=3","gravatar_id":"","url":"https://api.github.com/users/Firstyear","html_url":"https://github.com/Firstyear","followers_url":"https://api.github.com/users/Firstyear/followers","following_url":"https://api.github.com/users/Firstyear/following{/other_user}","gists_url":"https://api.github.com/users/Firstyear/gists{/gist_id}","starred_url":"https://api.github.com/users/Firstyear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Firstyear/subscriptions","organizations_url":"https://api.github.com/users/Firstyear/orgs","repos_url":"https://api.github.com/users/Firstyear/repos","events_url":"https://api.github.com/users/Firstyear/events{/privacy}","received_events_url":"https://api.github.com/users/Firstyear/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-07T06:05:16Z","updated_at":"2016-10-07T06:05:16Z","closed_at":null,"body":"  File \"/usr/lib/python3.5/site-packages/lib389/_entry.py\", line 276, in __repr__\r\n    sio, Entry.base64_attrs, 1000).unparse(ensure_str(self.dn), newdata)\r\n  File \"/usr/lib64/python3.5/site-packages/ldif.py\", line 213, in unparse\r\n    self._unparseAttrTypeandValue('dn', dn)\r\n  File \"/usr/lib64/python3.5/site-packages/ldif.py\", line 151, in _unparseAttrTypeandValue\r\n    if self._needs_base64_encoding(attr_type,attr_value):\r\n  File \"/usr/lib64/python3.5/site-packages/ldif.py\", line 140, in _needs_base64_encoding\r\n    not safe_string_re.search(attr_value) is None\r\nTypeError: cannot use a string pattern on a bytes-like object\r\n\r\nFix is to remove lines 211 and 212, which forcefully convert to a byte string, even though it's about to be sent to a regex that causes a TypeError.\r\n"}}
{"actor":{"display_login":"Firstyear"}}