Re: help me~!about base64

2008-12-02 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > my code: > − > import base64 > def deflashget(st): > if st.startswith('Flashget://'): > return base64.decodestring(st[len('Flashget://'):])[10:-10] > elif st.startswith('http://') or st.startswith('ftp://'): >

Re: help me~!about base64

2008-12-02 Thread ylj798
On 12月3日, 上午3时26分, "Jerry Hill" <[EMAIL PROTECTED]> wrote: > On Tue, Dec 2, 2008 at 2:08 PM, <[EMAIL PROTECTED]> wrote: > print base64.__file__ > > /usr/lib/python2.5/base64.pyc > > That looks fine, and matches what I have on my linux box. Your code > works fine for me when I run it, so I'm o

Re: help me~!about base64

2008-12-02 Thread Jerry Hill
On Tue, Dec 2, 2008 at 2:08 PM, <[EMAIL PROTECTED]> wrote: print base64.__file__ > /usr/lib/python2.5/base64.pyc That looks fine, and matches what I have on my linux box. Your code works fine for me when I run it, so I'm out of ideas. -- Jerry -- http://mail.python.org/mailman/listinfo/pyt

Re: help me~!about base64

2008-12-02 Thread ylj798
On 12月3日, 上午1时50分, "Jerry Hill" <[EMAIL PROTECTED]> wrote: > 2008/12/2 <[EMAIL PROTECTED]>: > > > it's run ,Eric gave me error,the error is "'module'objecthasno > >attribute'decodestring'", > > Do you have your own base64.py (or base64.pyc) that's shadowing the > standardmodulebase64? Try this: >

Re: help me~!about base64

2008-12-02 Thread Jerry Hill
2008/12/2 <[EMAIL PROTECTED]>: > it's run ,Eric gave me error,the error is "'module' object has no > attribute 'decodestring'", Do you have your own base64.py (or base64.pyc) that's shadowing the standard module base64? Try this: >>> import base64 >>> print base64.__file__ C:\Python25\lib\base6