homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Ramin Farajpour Cami
Recipients Ramin Farajpour Cami, martin.panter
Date 2015年09月12日.00:59:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442019567.43.0.226723106042.issue25075@psf.upfronthosting.co.za>
In-reply-to
Content
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
 enc_sec = re.sub('\n$','',enc)
 print enc_sec
 sec = enc_sec.encode("base64")
 print sec
Output:
{"userName": "admin", "password": "admin"}
eyJ1c2VyTmFtZSI6ICJhZG1pbiIsICJwYXNzd29yZCI6ICJhZG1pbiJ9
ZXlKMWMyVnlUbUZ0WlNJNklDSmhaRzFwYmlJc0lDSndZWE56ZDI5eVpDSTZJQ0poWkcxcGJpSjk=
History
Date User Action Args
2015年09月12日 00:59:27Ramin Farajpour Camisetrecipients: + Ramin Farajpour Cami, martin.panter
2015年09月12日 00:59:27Ramin Farajpour Camisetmessageid: <1442019567.43.0.226723106042.issue25075@psf.upfronthosting.co.za>
2015年09月12日 00:59:27Ramin Farajpour Camilinkissue25075 messages
2015年09月12日 00:59:27Ramin Farajpour Camicreate

AltStyle によって変換されたページ (->オリジナル) /