[BangPypers] ImportError: cannot import name 'unquote'

kracekumar ramaraju kracethekingmaker at gmail.com
Fri Mar 20 19:18:52 CET 2015


In Python 3.4, `quote, unquote` is moved to `urllib.parse`

```
>>>from urllib.parse import quote, unquote
>>>slug = quote('/profile/guido van')
>>>slug
'/profile/guido%20van'
>>>unquote(slug)
'/profile/guido van'
```



On Fri, Mar 20, 2015 at 10:56 PM, Gora Mohanty <gora at mimirtech.com> wrote:

> On 20 March 2015 at 22:11, Nimish Dalal <nimish.s.dalal at gmail.com> wrote:
> >
> > I installed Anaconda version 2.1.0 python 3.4.1
> >
>
> Unfortunately, I am not really conversant with Python3, but I think that
> there
> you would need:
>    from urllib.parse import unquote
>
> Regards,
> Gora
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> https://mail.python.org/mailman/listinfo/bangpypers
>



-- 

*Thanks & Regardskracekumar"Talk is cheap, show me the code" -- Linus
Torvaldshttp://kracekumar.com <http://kracekumar.com>*


More information about the BangPypers mailing list