Rev 33: Encode the text being signed and submitted to the pqm in http://bzr.arbash-meinel.com/plugins/pqm_submit

John Arbash Meinel john at arbash-meinel.com
Thu Feb 8 00:18:30 GMT 2007


At http://bzr.arbash-meinel.com/plugins/pqm_submit

------------------------------------------------------------
revno: 33
revision-id: john at arbash-meinel.com-20070208001816-m1fkb24ugg8kosvw
parent: john at arbash-meinel.com-20070201154753-3kyum1ykxs61jdma
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: pqm_submit
timestamp: Wed 2007-02-07 18:18:16 -0600
message:
  Encode the text being signed and submitted to the pqm
modified:
  pqm_submit.py                  pqm_submit.py-20060221060137-b3a3cdde9f50efab
-------------- next part --------------
=== modified file 'pqm_submit.py'
--- a/pqm_submit.py	2007-02-01 15:47:53 +0000
+++ b/pqm_submit.py	2007-02-08 00:18:16 +0000
@@ -42,6 +42,7 @@
                                      'in configuration')
 
     unsigned_text = 'star-merge %s %s' % (target_base, merge_target)
+    unsigned_text = unsigned_text.encode('ascii') #URLs should be ascii
 
     strategy = bzrlib.gpg.GPGStrategy(config)
 
@@ -52,7 +53,7 @@
 To: %s
 Subject: %s
 
-''' 
+'''
 
 
 def _setup_headers(message, user_from, user_to):
@@ -122,7 +123,7 @@
             'Public location has no branch: %s' % target_base)
     if public_revision != branch.last_revision():
         raise errors.BzrCommandError(
-            'Local last revision does not match public last revision: %s' % 
+            'Local last revision does not match public last revision: %s' %
             (target_base,))
     # Get the signed text, this should be done just before
     # emailing, so that we don't run gpg --cl for nothing



More information about the bazaar-commits mailing list