empty list of reviewers should not request review from the wind
authorSteve Fink <sfink@mozilla.com>
Fri, 13 Jan 2012 22:19:51 -0800
changeset 52 5de77696ef6ef9aad12337ff45e7bb48a7089c04
parent 51 1d652c8c0691f799c280d79b31ee450b177b3bf1
child 53 3c6aedd092c2c5942fcbe295e32bd869f01a3ffb
push id33
push usersfink@mozilla.com
push dateWed, 01 Feb 2012 20:22:14 +0000
empty list of reviewers should not request review from the wind
bzexport.py
--- a/bzexport.py
+++ b/bzexport.py
@@ -272,17 +272,17 @@ def create_attachment(ui, api_server, to
     url = api_server + "bug/%s/attachment?%s" % (bug, token.auth())
 
     json_data = {'data': attachment,
                  'encoding': 'base64',
                  'file_name': filename,
                  'description': description,
                  'is_patch': True,
                  'content_type': 'text/plain'}
-    if reviewers is not None:
+    if reviewers:
         flag_ids = review_flag_type_id(ui, api_server)
         
         flags = []
         for flag_type_id in flag_ids:
             flags.append({"name": "review",
                           "requestee": {"name": ", ".join(reviewers)},
                           "setter": {"name": token.username(ui, api_server)},
                           "status": "?",