Skip to content

Commit

Permalink
Fix single invalid whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
unbrice committed Dec 13, 2015
1 parent 3e0199e commit 6825d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py1/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Counts empty lines:
$ py1 'P(sum(1 if l else 0 for l in F))'
Shows second and third fields of /etc/passwd:
$ cat /etc/passwd | py1 -b 'WS=":"' -l 'P(W[1:2])'
$ cat /etc/passwd | py1 -b 'WS=":"' -l 'P(W[1:2])'
Sums key-value pairs:
py1 -b 'd=defaultdict(int)' -l 'd[W[0]] += int(W[1])' -e 'P(d)'
"""
Expand Down

0 comments on commit 6825d69

Please sign in to comment.