1. mdelagra
  2. mercurial-reviewboard


mdewildt  committed 4d4cb89

fixed int to str and encoding errors

- find_reviewboard_repo_id: convert to int was removed when getting the repo id from hgrc
- _encode_multipart_formdata: remove all non ASCII chars before postin

  • Participants
  • Parent commits 1623cc5
  • Branches default

Comments (0)

Files changed (2)

File mercurial_reviewboard/__init__.py

View file
  • Ignore whitespace
     if opts.get('repoid'):
         return opts.get('repoid')
     elif ui.config('reviewboard','repoid'):
-        return int(ui.config('reviewboard','repoid'))
+        return ui.config('reviewboard','repoid')
         repositories = reviewboard.repositories()

File mercurial_reviewboard/reviewboard.py

View file
  • Ignore whitespace
         content_type = "multipart/form-data; boundary=%s" % BOUNDARY
-        return content_type, content
+        return content_type, unicode(content, errors='ignore')
 class ApiClient:
     def __init__(self, httpclient):