@@ -49,17 +49,19 @@ def add_timestamp_parser(session):
4949 try :
5050 timestamp_format = session .get_scoped_config ().get (
5151 'cli_timestamp_format' ,
52- 'none ' )
52+ 'wire ' )
5353 except ProfileNotFound :
5454 # If a --profile is provided that does not exist, loading
5555 # a value from get_scoped_config will crash the CLI.
5656 # This function can be called as the first handler for
5757 # the session-initialized event, which happens before a
5858 # profile can be created, even if the command would have
5959 # successfully created a profile. Instead of crashing here
60- # on a ProfileNotFound the CLI should just use 'none'.
61- timestamp_format = 'none'
62- if timestamp_format == 'none' :
60+ # on a ProfileNotFound the CLI should just use 'wire'.
61+ timestamp_format = 'wire'
62+ # We also support 'none' for backwards compatibility reasons, though we
63+ # document 'wire' instead.
64+ if timestamp_format == 'wire' or timestamp_format == 'none' :
6365 # For backwards compatibility reasons, we replace botocore's timestamp
6466 # parser (which parses to a datetime.datetime object) with the
6567 # identity function which prints the date exactly the same as it comes
@@ -69,7 +71,7 @@ def add_timestamp_parser(session):
6971 timestamp_parser = iso_format
7072 else :
7173 raise ValueError ('Unknown cli_timestamp_format value: %s, valid values'
72- ' are "none" or "iso8601"' % timestamp_format )
74+ ' are "none", "wire" or "iso8601"' % timestamp_format )
7375 factory .set_parser_defaults (timestamp_parser = timestamp_parser )
7476
7577
0 commit comments