From e6f4f6be252083c93bb4a34cac2a0c09ad146d08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=BChnel?= Date: Tue, 4 Feb 2020 16:36:42 +0100 Subject: [PATCH] casting diff_id to str --- scripts/phabtalk/apply_patch2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/phabtalk/apply_patch2.py b/scripts/phabtalk/apply_patch2.py index f65e06f..0d44738 100755 --- a/scripts/phabtalk/apply_patch2.py +++ b/scripts/phabtalk/apply_patch2.py @@ -145,7 +145,7 @@ class ApplyPatch: """Download and apply a diff to the local working copy.""" print('Applying diff {} for revision {}...'.format(diff_id, diff_to_str(revision_id))) # TODO: print diff or URL to it - diff = self.phab.differential.getrawdiff(diffID=diff_id).response + diff = self.phab.differential.getrawdiff(diffID=str(diff_id)).response proc = subprocess.run('patch -p1', input=diff, shell=True, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) if proc.returncode != 0: