equal
deleted
inserted
replaced
45 ) |
45 ) |
46 from .utils import ( |
46 from .utils import ( |
47 dateutil, |
47 dateutil, |
48 stringutil, |
48 stringutil, |
49 ) |
49 ) |
50 |
|
51 # keeps pyflakes happy |
|
52 assert [ |
|
53 Any, |
|
54 Callable, |
|
55 Dict, |
|
56 Optional, |
|
57 Sequence, |
|
58 Tuple, |
|
59 ] |
|
60 |
|
61 # keep pyflakes happy |
|
62 for t in (Any, Callable, Dict, Optional, Tuple): |
|
63 assert t |
|
64 |
50 |
65 |
51 |
66 def getlimit(opts): |
52 def getlimit(opts): |
67 """get the log limit according to option -l/--limit""" |
53 """get the log limit according to option -l/--limit""" |
68 limit = opts.get(b'limit') |
54 limit = opts.get(b'limit') |