浏览代码

Fix lower-case bug in pw script

Carsten Dominik 14 年之前
父节点
当前提交
2072def1b9
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      UTILITIES/pw

+ 3 - 3
UTILITIES/pw

@@ -321,10 +321,10 @@ def action_update_patch(rpc, patch_id, state = None, commit = None,
 
             from_addr = '%s <%s>' % (person['name'], person['email'])
             cc_addr   = '%s <%s>' % (submitter['name'], submitter['email'])
-            to_addr   = notify_on_state_change[state]
+            to_addr   = notify_on_state_change[state.lower()]
 
-	    orig_mail = rpc.patch_get_mbox(patch_id)
-	    orig_mail = '> ' + orig_mail.replace('\n','\n> ')
+            orig_mail = rpc.patch_get_mbox(patch_id)
+            orig_mail = '> ' + orig_mail.replace('\n','\n> ')
 
             longdesc = '''Patch %s (http://patchwork.newartisans.com/patch/%s/) is now "%s".