mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #22823: Use set literals instead of creating a set from a list
This commit is contained in:
parent
bf764a1912
commit
df1b699447
10 changed files with 19 additions and 20 deletions
|
|
@ -1680,7 +1680,7 @@ as in the following complete example::
|
|||
|
||||
def main():
|
||||
logging.basicConfig(level=logging.INFO, format='%(message)s')
|
||||
logging.info(_('message 1', set_value=set([1, 2, 3]), snowman='\u2603'))
|
||||
logging.info(_('message 1', set_value={1, 2, 3}, snowman='\u2603'))
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue