Merge lp:~dholbach/ubuntu-sponsoring/lp-usage into lp:~ubuntu-dev/ubuntu-sponsoring/trunk

Proposed by Daniel Holbach
Status: Merged
Merged at revision: 114
Proposed branch: lp:~dholbach/ubuntu-sponsoring/lp-usage
Merge into: lp:~ubuntu-dev/ubuntu-sponsoring/trunk
Diff against target: 17 lines (+2/-2)
1 file modified
launchpad.py (+2/-2)
To merge this branch: bzr merge lp:~dholbach/ubuntu-sponsoring/lp-usage
Reviewer Review Type Date Requested Status
Stefano Rivera Approve
Review via email: mp+49648@code.launchpad.net

Description of the change

Please review ASAP. It's important we land this soon.

To post a comment you must log in.
Revision history for this message
Stefano Rivera (stefanor) wrote :

Hmm.

Traceback (most recent call last):
  File "./sponsors-page.py", line 413, in <module>
    main()
  File "./sponsors-page.py", line 394, in main
    html = re.sub("@" + pattern + "@", str(substitution), html)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2018' in position 3668: ordinal not in range(128)

/me digs

Revision history for this message
Benjamin Drung (bdrung) wrote :

I am getting an unrelated issue:

Traceback (most recent call last):
  File "./sponsors-page.py", line 413, in <module>
    main()
  File "./sponsors-page.py", line 394, in main
    html = re.sub("@" + pattern + "@", str(substitution), html)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2018' in position 3668: ordinal not in range(128)

Revision history for this message
Stefano Rivera (stefanor) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'launchpad.py'
2--- launchpad.py 2010-02-08 18:30:14 +0000
3+++ launchpad.py 2011-02-14 15:21:33 +0000
4@@ -1,11 +1,11 @@
5-from launchpadlib.launchpad import Launchpad, EDGE_SERVICE_ROOT
6+from launchpadlib.launchpad import Launchpad
7 from launchpadlib.credentials import Credentials
8 from launchpadlib.errors import HTTPError
9
10 import sys
11 import os
12
13-def lp_login(lp_instance=EDGE_SERVICE_ROOT):
14+def lp_login(lp_instance='production'):
15 cachedir = os.path.abspath('lp_data/cache')
16 creddir = os.getenv("CRED_DIR")
17 if not creddir:

Subscribers

People subscribed via source and target branches