Merge lp:~chipaca/unity-lens-video/you-tee-eff-eight into lp:unity-lens-video/remote-videos-scope-trunk

Proposed by John Lenton
Status: Merged
Approved by: David Callé
Approved revision: 26
Merged at revision: 26
Proposed branch: lp:~chipaca/unity-lens-video/you-tee-eff-eight
Merge into: lp:unity-lens-video/remote-videos-scope-trunk
Diff against target: 13 lines (+1/-1)
1 file modified
src/unity-scope-video-remote (+1/-1)
To merge this branch: bzr merge lp:~chipaca/unity-lens-video/you-tee-eff-eight
Reviewer Review Type Date Requested Status
David Callé Pending
Review via email: mp+94365@code.launchpad.net

Commit message

Encode sources in utf-8 before passing to urllib.urlencode.

Description of the change

Encode sources in utf-8 before passing to urllib.urlencode.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/rules' (properties changed: -x to +x)
2=== modified file 'src/unity-scope-video-remote'
3--- src/unity-scope-video-remote 2012-02-23 11:01:39 +0000
4+++ src/unity-scope-video-remote 2012-02-23 13:00:36 +0000
5@@ -140,7 +140,7 @@
6 """Query the server with the search string and the list of sources."""
7 query = dict(q=search)
8 if sources:
9- query['sources'] = sources
10+ query['sources'] = sources.encode("utf-8")
11 query = urllib.urlencode(query)
12 url = "%s/search?%s" % (SERVER, query)
13 print "Querying the server:", url

Subscribers

People subscribed via source and target branches

to all changes: