Check in updated snapshots

This commit is contained in:
Charlie Marsh 2022-12-28 16:42:55 -05:00
parent 6131c819ed
commit dfa6fa8f83
2 changed files with 33 additions and 174 deletions

View file

@ -20,15 +20,15 @@ expression: checks
- kind: RewriteCElementTree - kind: RewriteCElementTree
location: location:
row: 3 row: 3
column: 0 column: 7
end_location: end_location:
row: 3 row: 3
column: 35 column: 35
fix: fix:
content: import xml.etree.ElementTree as ET content: xml.etree.ElementTree as ET
location: location:
row: 3 row: 3
column: 0 column: 7
end_location: end_location:
row: 3 row: 3
column: 35 column: 35
@ -50,15 +50,15 @@ expression: checks
- kind: RewriteCElementTree - kind: RewriteCElementTree
location: location:
row: 7 row: 7
column: 0 column: 10
end_location: end_location:
row: 7 row: 7
column: 49 column: 49
fix: fix:
content: import xml.etree.ElementTree as ET content: xml.etree.ElementTree as ET
location: location:
row: 7 row: 7
column: 0 column: 10
end_location: end_location:
row: 7 row: 7
column: 49 column: 49
@ -80,61 +80,76 @@ expression: checks
- kind: RewriteCElementTree - kind: RewriteCElementTree
location: location:
row: 16 row: 16
column: 4 column: 11
end_location: end_location:
row: 16 row: 16
column: 39 column: 39
fix: fix:
content: import xml.etree.ElementTree as ET content: xml.etree.ElementTree as ET
location: location:
row: 16 row: 16
column: 4 column: 11
end_location: end_location:
row: 16 row: 16
column: 39 column: 39
- kind: RewriteCElementTree - kind: RewriteCElementTree
location: location:
row: 17 row: 17
column: 4 column: 26
end_location: end_location:
row: 17 row: 17
column: 45 column: 45
fix: fix:
content: from xml.etree import ElementTree as CET content: ElementTree as CET
location: location:
row: 17 row: 17
column: 4 column: 26
end_location: end_location:
row: 17 row: 17
column: 45 column: 45
- kind: RewriteCElementTree - kind: RewriteCElementTree
location: location:
row: 19 row: 19
column: 0 column: 22
end_location: end_location:
row: 19 row: 19
column: 40 column: 40
fix: fix:
content: from xml.etree import ElementTree as ET content: ElementTree as ET
location: location:
row: 19 row: 19
column: 0 column: 22
end_location: end_location:
row: 19 row: 19
column: 40 column: 40
- kind: RewriteCElementTree - kind: RewriteCElementTree
location: location:
row: 21 row: 21
column: 0 column: 19
end_location: end_location:
row: 21 row: 21
column: 47 column: 47
fix: fix:
content: "import contextlib, xml.etree.ElementTree as ET" content: xml.etree.ElementTree as ET
location: location:
row: 21 row: 21
column: 0 column: 19
end_location: end_location:
row: 21 row: 21
column: 47 column: 47
- kind: RewriteCElementTree
location:
row: 24
column: 31
end_location:
row: 24
column: 59
fix:
content: xml.etree.ElementTree as ET
location:
row: 24
column: 31
end_location:
row: 24
column: 59

View file

@ -1,156 +0,0 @@
---
source: src/pyupgrade/mod.rs
assertion_line: 53
expression: checks
---
- kind: RewriteCElementTree
location:
row: 2
column: 0
end_location:
row: 2
column: 59
fix:
content: "from xml.etree.ElementTree import XML, Element, SubElement"
location:
row: 2
column: 0
end_location:
row: 2
column: 59
- kind: RewriteCElementTree
location:
row: 3
column: 7
end_location:
row: 3
column: 35
fix:
content: xml.etree.ElementTree as ET
location:
row: 3
column: 7
end_location:
row: 3
column: 35
- kind: RewriteCElementTree
location:
row: 6
column: 0
end_location:
row: 6
column: 44
fix:
content: from xml.etree.ElementTree import XML
location:
row: 6
column: 0
end_location:
row: 6
column: 44
- kind: RewriteCElementTree
location:
row: 7
column: 10
end_location:
row: 7
column: 49
fix:
content: xml.etree.ElementTree as ET
location:
row: 7
column: 10
end_location:
row: 7
column: 49
- kind: RewriteCElementTree
location:
row: 10
column: 0
end_location:
row: 14
column: 1
fix:
content: "from xml.etree.ElementTree import (\n XML,\n Element,\n SubElement,\n)"
location:
row: 10
column: 0
end_location:
row: 14
column: 1
- kind: RewriteCElementTree
location:
row: 16
column: 11
end_location:
row: 16
column: 39
fix:
content: xml.etree.ElementTree as ET
location:
row: 16
column: 11
end_location:
row: 16
column: 39
- kind: RewriteCElementTree
location:
row: 17
column: 26
end_location:
row: 17
column: 45
fix:
content: ElementTree as CET
location:
row: 17
column: 26
end_location:
row: 17
column: 45
- kind: RewriteCElementTree
location:
row: 19
column: 22
end_location:
row: 19
column: 40
fix:
content: ElementTree as ET
location:
row: 19
column: 22
end_location:
row: 19
column: 40
- kind: RewriteCElementTree
location:
row: 21
column: 19
end_location:
row: 21
column: 47
fix:
content: xml.etree.ElementTree as ET
location:
row: 21
column: 19
end_location:
row: 21
column: 47
- kind: RewriteCElementTree
location:
row: 23
column: 31
end_location:
row: 23
column: 59
fix:
content: xml.etree.ElementTree as ET
location:
row: 23
column: 31
end_location:
row: 23
column: 59