[issue25075] issue from python in encode base64 with Json Model

2015-09-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: no close plz, i using python 2.7.3 i get this output without "\n"? code: json_obj='{"userName": "admin", "password": "admin"}' enc = json_obj.encode("base64") print enc

[issue25075] issue from python in encode base64 with Json Model

2015-09-11 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue25075] issue from python in encode base64 with Json Model

2015-09-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: why any update in python 2.7? you should using a function this code change : enc_sec = ZXlKMWMyVnlUbUZ0WlNJNkltRmtiV2x1SWl3aWNHRnpjM2R2Y21RaU9pSmhaRzFwYmlKOQo= url = re.sub('\o=$','',enc_sec) result = url.replace('\n','==') print result -- statu

[issue25075] issue from python in encode base64 with Json Model

2015-09-11 Thread Martin Panter
Changes by Martin Panter : -- components: -2to3 (2.x to 3.x conversion tool) ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25075] issue from python in encode base64 with Json Model

2015-09-11 Thread Martin Panter
Martin Panter added the comment: This seems to be as documented. Have a look at the definition of “base64_codec” under , which says “the result always includes a trailing '\n' ”. In fact, line breaks are also added for l

[issue25075] issue from python in encode base64 with Json Model

2015-09-11 Thread Ramin Farajpour Cami
New submission from Ramin Farajpour Cami: Hi, issue from python in encode base64 with Json Model in twice encode with base64 output python different with JAVA and C# , if programmer using rest-service in server side and other programmer using UI(Python Django) in client site , this encode di