Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!eweka.nl!hq-usenetpeers.eweka.nl!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.068 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.00; 'cheers!': 0.09; 'subject:Problem': 0.09; 'subject:characters': 0.09; 'debugging': 0.13; 'password.': 0.13; 'to:name:python-list@python.org': 0.15; 'fetches': 0.16; 'happens.': 0.16; 'subject:urllib': 0.16; 'url:pastebin': 0.16; 'subject:password': 0.18; 'seems': 0.20; 'wrote': 0.21; 'stops': 0.23; 'string': 0.24; 'fine': 0.24; 'tried': 0.27; 'beyond': 0.28; "i'm": 0.28; 'script': 0.28; 'url:)': 0.29; 'pretty': 0.31; "i've": 0.32; 'appreciated.': 0.34; 'hi,': 0.34; 'to:addr:python-list': 0.35; 'something': 0.35; 'using': 0.37; 'subject:with': 0.37; 'some': 0.38; 'getting': 0.38; 'problems': 0.38; 'characters': 0.39; 'feed': 0.39; 'subject: (': 0.40; 'to:addr:python.org': 0.40; 'received:202': 0.66; 'saw': 0.66; 'special': 0.66; 'received:in.yahoo.com': 0.67; 'received:mail.in.yahoo.com': 0.67; 'header:Reply-To:1': 0.70; 'received:121': 0.80; 'received:121.101': 0.84; 'received:121.101.151': 0.84; 'url:atom': 0.84; 'url:feed': 0.84 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 600689.9030.bm@omp1003.mail.in.yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1332109629; bh=ApbpjvqA4WX5f9BHtIyGqBvB2yN/X3ZxUUE1p9NFXgQ=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=2bVb9qXNuu/nQaL5+gUN54qyuOWEhDm0+0PjKB3sjGXnaRs4eYrr3JRO+nqVA2sCD1OUgzGEawlnXhDJ/7NmWaOwmjR4OdnOHbag1zq5zSJiJxzld9u0pW/6kU9R8RJcFMyYpjptLdV2JmY+edwf6yQ0qMVLhiQ2UN723gUQenk= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Rb03e0RqYAfRFRh5fVDEZdXSp/Xh6+9Ur1W5b4UuwCftR103yeMeDfGuHlSmdk0llOfW0G6cpN2qVzKvUAz0yq9K9EbxdrP/eL0jUf+pYGXBVV8zTzc8olyaiZlaTzkAHNIFczKuQaokyUnbgrKe1QM2GbqHosOxikT54td5gJ4=; X-YMail-OSG: oChAe1sVM1mQ56U5NXMQ5VzMhLTOeo3CECNR7iNDExl_Xcc o2mIfHPfKFkQxfQ5HUzP_oRhwBvDHtZEZCXfiRKhkR_FA5YVVHZfImyWx_Km H0Mto_OY7MhmJSewhhoH2QwLSDKNEs_WsqLS0FdbueUQsXP5UxmdLF_w1B4C 6EqyFt2farH8gJscaF2Hzxx1JSSO1Y7ZTXOo0bqazadadxnKge.x4EWX1vSH a4_TfWn45kwSTBvipABDObc_sSnPCmHyMo0Sme1SXFc2ezt906z6H.t7wwz0 SvLnUcYOGWU5M_2N7tONcqsKbYBazgXXHi4p4khoN8q01WBV2BFQQTBxCsgl ygu9kFsx729tdRa4q5r.rxLYeWtlAp7l5v46VlyyWcDMtNAd9OeAR.i9xLsN 6D4sDDoILcUgSWvWNgnAF7zklTrXBFkRA0Kxwi.ReT4F2WcLsZS.t4Wz4l4w .B_pOEtv6CHpVp3c2bu9mOsO3FQRQWRtjF_drT672IA45aAIagRdChNvUO26 DvGY- X-Mailer: YahooMailWebService/0.8.116.338427 Date: Mon, 19 Mar 2012 03:57:09 +0530 (IST) From: Bernhard Heijstek Subject: Problem with special characters in the password field (urllib) To: "python-list@python.org" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Bernhard Heijstek List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1332109638 news.xs4all.nl 6847 [2001:888:2000:d::a6]:37429 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21868 Hi,=0A=0AI'm having problems getting a script that I wrote to check the unr= ead Gmail feed work (http://pastebin.com/FAGyedH0). The script fetches the = unread mail feed (https://mail.google.com/mail/feed/atom/) and then parses = it using python-feedparser.=0A=0AThe script seems to work fine if I'm not u= sing any special characters like !@#$%^&*() in the password. I tried some p= retty basic debugging and saw that the execution stops beyond line 35 which= is where the authentication happens. So I figured that this has got to do = something with urrllib and special characters in the password field. I've a= lso tried prefixing the string with 'r' without any success.=0A=0AAny help = is appreciated.=0A=0ACheers!=0A=0ABernhard.