On 2013/08/20 12:45:35, Eran wrote: > The current way (passing in the size from the ...
10 years, 8 months ago
(2013-08-20 12:50:46 UTC)
#3
On 2013/08/20 12:45:35, Eran wrote:
> The current way (passing in the size from the flag as default) makes more
sense.
> What's the motivation for the change?
The motivation is in the CL description: the current way doesn't work. The
default argument value is bound at method creation time, which happens before
flags are parsed, so it'll always be the default flag value.
The test I've added fails without the change.
LGTM. https://codereview.appspot.com/13122043/diff/1/src/python/ct/client/log_client_test.py File src/python/ct/client/log_client_test.py (right): https://codereview.appspot.com/13122043/diff/1/src/python/ct/client/log_client_test.py#newcode165 src/python/ct/client/log_client_test.py:165: mock_responder.reset_mock() IMHO a separate test is preferable, since ...
10 years, 8 months ago
(2013-08-20 12:52:47 UTC)
#4
Issue 13122043: Fix FLAGS usage in args
Created 10 years, 8 months ago by ekasper
Modified 10 years, 8 months ago
Reviewers: Eran
Base URL:
Comments: 2