Skip to content

Commit 946ffcf

Browse files
Remove verbose flag from call to collections.namedtuple()
This flag was removed in Python 3.7
1 parent cec35db commit 946ffcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collections_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
typename = 'Point' # string
55
field_names = ('x', 'y') # iterable
66
# Convention: variable name is the same as the typename
7-
Point = collections.namedtuple(typename, field_names, verbose=False)
7+
Point = collections.namedtuple(typename, field_names)
88

99
# Instantiate tuple
1010
Point(0, 1)

0 commit comments

Comments
 (0)