Browse Source

Make it explicit that second tuple element returned by gpg.Context.sign is ignored.

Jelmer Vernooij 6 years ago
parent
commit
76a702ea07
1 changed files with 2 additions and 1 deletions
  1. 2 1
      dulwich/porcelain.py

+ 2 - 1
dulwich/porcelain.py

@@ -774,7 +774,8 @@ def tag_create(
             if sign:
             if sign:
                 import gpg
                 import gpg
                 with gpg.Context(armor=True) as c:
                 with gpg.Context(armor=True) as c:
-                    tag_obj.signature, result = c.sign(tag_obj.as_raw_string())
+                    tag_obj.signature, unused_result = c.sign(
+                        tag_obj.as_raw_string())
             r.object_store.add_object(tag_obj)
             r.object_store.add_object(tag_obj)
             tag_id = tag_obj.id
             tag_id = tag_obj.id
         else:
         else: