Skip to content

Commit

Permalink
simplify token creation
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Feb 12, 2023
1 parent 510629e commit 5dcf1e6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/django_upgrade/fixers/test_http_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,7 @@ def insert_headers_kwarg(
open_idx = find(tokens, i, name=OP, src="(")
func_args, close_idx = parse_call_args(tokens, open_idx)

new_tokens = []

new_tokens += [
new_tokens = [
Token(name=NAME, src=HEADERS_KWARG),
Token(name="OP", src="="),
Token(name="OP", src="{"),
Expand Down

0 comments on commit 5dcf1e6

Please sign in to comment.