diff options
| author | Eric V. Smith <ericvsmith@users.noreply.github.com> | 2018-03-24 21:20:26 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-24 21:20:26 (GMT) |
| commit | f96ddade0094d162cb6c2fd7255c5e8a90b5c37d (patch) | |
| tree | 3d27a2e9b10c7b61545810c0ba892918f3109517 /Lib/test/support/script_helper.py | |
| parent | a95d98607efe0c43475b354543e49bf8e240bc6f (diff) | |
| download | cpython-f96ddade0094d162cb6c2fd7255c5e8a90b5c37d.zip cpython-f96ddade0094d162cb6c2fd7255c5e8a90b5c37d.tar.gz cpython-f96ddade0094d162cb6c2fd7255c5e8a90b5c37d.tar.bz2 | |
Trivial dataclass cleanups: (GH-6218)
- When adding a single element to a list, use .append() instead of
+= and creating a new list.
- For consistency, import the copy module, instead of just deepcopy. This
leaves only a module at the class level, instead of a function.
- Improve some comments.
- Improve some whitespace.
- Use tuples instead of lists.
- Simplify a test.
Diffstat (limited to 'Lib/test/support/script_helper.py')
0 files changed, 0 insertions, 0 deletions
