1
0
Fork 0

fixxed choose_project for legagacy usage

This commit is contained in:
Christian Kühnel 2020-03-24 08:27:43 +00:00
parent 4492534331
commit 7023688d1b

View file

@ -108,7 +108,7 @@ class ChooseProjects:
def get_changed_files(patch_str: str = None) -> Set[str]:
"""get list of changed files from the patch from STDIN."""
if patch_str is None:
patch_str = PatchSet(sys.stdin)
patch_str = sys.stdin
patch = PatchSet(patch_str)
changed_files = set({f.path for f in patch.modified_files + patch.added_files + patch.removed_files})