mirror of
https://github.com/cool-RR/PySnooper.git
synced 2026-01-23 02:14:04 +00:00
Update authors
This commit is contained in:
parent
f3d7f39af4
commit
7ca28af18d
2 changed files with 11 additions and 4 deletions
2
AUTHORS
2
AUTHORS
|
|
@ -24,3 +24,5 @@ Itamar.Raviv
|
|||
iory
|
||||
Mark Blakeney
|
||||
Yael Mintz
|
||||
Lumír 'Frenzy' Balhar
|
||||
Lukas Klenk
|
||||
|
|
|
|||
|
|
@ -19,6 +19,11 @@ You probably want to run it this way:
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
# This is used for people who show up more than once:
|
||||
deny_list = frozenset((
|
||||
'Lumir Balhar',
|
||||
))
|
||||
|
||||
|
||||
def drop_recurrences(iterable):
|
||||
s = set()
|
||||
|
|
@ -37,10 +42,10 @@ def iterate_authors_by_chronological_order(branch):
|
|||
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
|
||||
)
|
||||
log_lines = log_call.stdout.decode('utf-8').split('\n')
|
||||
|
||||
return drop_recurrences(
|
||||
(line.strip().split(";")[1] for line in log_lines)
|
||||
)
|
||||
|
||||
authors = tuple(line.strip().split(";")[1] for line in log_lines)
|
||||
authors = (author for author in authors if author not in deny_list)
|
||||
return drop_recurrences(authors)
|
||||
|
||||
|
||||
def print_authors(branch):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue