gitstats-0_pre20201124.patch 937 B

1234567891011121314151617181920212223242526272829
  1. --- a/gitstats 2024-06-24 21:09:20.426186008 +0200
  2. +++ b/gitstats 2024-06-25 09:12:22.390452602 +0200
  3. @@ -96,7 +96,7 @@
  4. return [el[1] for el in sorted([(d[el][key], el) for el in list(d.keys())])]
  5. def getstatsummarycounts(line):
  6. - numbers = re.findall('\d+', line)
  7. + numbers = re.findall(r'\d+', line)
  8. if len(numbers) == 1:
  9. # neither insertions nor deletions: may probably only happen for "0 files changed"
  10. numbers.append(0);
  11. @@ -322,7 +322,7 @@
  12. continue
  13. prev = tag
  14. for line in output.split('\n'):
  15. - parts = re.split('\s+', line, 2)
  16. + parts = re.split(r'\s+', line, 2)
  17. commits = int(parts[1])
  18. author = parts[2]
  19. self.tags[tag]['commits'] += commits
  20. @@ -485,7 +485,7 @@
  21. for line in lines:
  22. if len(line) == 0:
  23. continue
  24. - parts = re.split('\s+', line, 4)
  25. + parts = re.split(r'\s+', line, 4)
  26. if parts[0] == '160000' and parts[3] == '-':
  27. # skip submodules
  28. continue