Commits

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

Comments (0)

Files changed (2)

File mercurial_reviewboard/__init__.py

     if opts.get('repoid'):
         return opts.get('repoid')
     elif ui.config('reviewboard','repoid'):
-        return int(ui.config('reviewboard','repoid'))
+        return ui.config('reviewboard','repoid')
     
     try:
         repositories = reviewboard.repositories()

File mercurial_reviewboard/reviewboard.py

 
         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):