CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 00:48:37 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/simonw/simonwillisonblog.git
etag: W/"13a4cd3664780a9f5143321e2a67a85d"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=uRTe%2BiA0YxDKffFSyDDTqRTQcr11nlQcvk8SAfhZSe48Vdnp80K67Ou%2FOoYJT3jMmyNnut%2BHpxnRRloWQA5Zb0yQ4Eftmj912c0S4FD%2FH88MwG7CJdDxi4%2BLlthatLHRSvE0CtXc8ZCktbWxyc4%2Fzyx1%2BfGPO80DBsla8oM%2BTBnwWOcfbHJTmDVNNdUOHdhQgG9SAJaQXRwdqHrsca%2BbiDcVhQ%2FhxI7nQAFpJjrFMEKw3KAupKC4quGLY2qlFkfo0PcJFbc23jHcZwMagFmdGA%3D%3D--SBdo7w9oCXq9dCmS--3yy9%2Fpb1r8psIXCP0N7aWQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1281307990.1760143715; Path=/; Domain=github.com; Expires=Sun, 11 Oct 2026 00:48:35 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 11 Oct 2026 00:48:35 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D61E:C7FF0:1B738F:27CBF4:68E9A963
Ran 2to3 and got existing tests passing · simonw/simonwillisonblog@615efeb · GitHub
committed
Copy file name to clipboardExpand all lines: blog/management/commands/import_blog_json.py
Copy file name to clipboardExpand all lines: blog/management/commands/import_blog_xml.py
Copy file name to clipboardExpand all lines: blog/management/commands/import_quora.py
Copy file name to clipboardExpand all lines: blog/management/commands/reindex_all.py
Copy file name to clipboardExpand all lines: blog/management/commands/validate_entries_xml.py
Copy file name to clipboardExpand all lines: blog/migrations/0001_initial.py
Copy file name to clipboardExpand all lines: blog/migrations/0002_auto_20150713_0551.py
Copy file name to clipboardExpand all lines: blog/migrations/0003_auto_20170926_0641.py
Copy file name to clipboardExpand all lines: blog/migrations/0004_metadata_json.py
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit 615efeb

Simon Willison
Ran 2to3 and got existing tests passing
I ran this command:
2to3 -w -n blog/ config/ redirects/ feedstats/
This upgraded most of my code in-place. I then ran the tests, and manually
fixed a few issues - principally a bytestring in a migration and some text
encoding weirdness in my ancient XHTML-processing ElementTree code.
Now that the existing tests pass, I can move on to manual testing and add
additional tests to cover any problems I find.1 parent e72e45d commit 615efebCopy full SHA for 615efeb
File tree
Expand file treeCollapse file tree
32 files changed
+77
-76
lines changedFilter options
- blog
- management/commands
- migrations
- templatetags
- config
- feedstats
- migrations
- redirects
- migrations
Expand file treeCollapse file tree
32 files changed
+77
-76
lines changedCollapse file: blog/feeds.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
81 | 81 |
| |
82 | 82 |
| |
83 | 83 |
| |
84 |
| - | |
| 84 | + | |
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
|
Collapse file: blog/management/commands/import_blog_json.py
blog/management/commands/import_blog_json.py
Copy file name to clipboardExpand all lines: blog/management/commands/import_blog_json.py+3-3Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
| 51 | + | |
52 | 52 |
| |
53 |
| - | |
| 53 | + | |
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
| |||
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
93 |
| - | |
| 93 | + |
Collapse file: blog/management/commands/import_blog_xml.py
blog/management/commands/import_blog_xml.py
Copy file name to clipboardExpand all lines: blog/management/commands/import_blog_xml.py+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
64 |
| - | |
| 64 | + | |
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
| |||
165 | 165 |
| |
166 | 166 |
| |
167 | 167 |
| |
168 |
| - | |
| 168 | + | |
169 | 169 |
|
Collapse file: blog/management/commands/import_quora.py
blog/management/commands/import_quora.py
Copy file name to clipboardExpand all lines: blog/management/commands/import_quora.py+9-9Lines changed: 9 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
45 |
| - | |
| 44 | + | |
| 45 | + | |
46 | 46 |
| |
47 | 47 |
| |
48 |
| - | |
| 48 | + | |
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
64 |
| - | |
| 64 | + | |
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
| |||
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
107 |
| - | |
108 |
| - | |
| 107 | + | |
| 108 | + | |
109 | 109 |
| |
110 |
| - | |
| 110 | + | |
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
114 |
| - | |
| 114 | + | |
115 | 115 |
| |
116 |
| - | |
| 116 | + |
Collapse file: blog/management/commands/reindex_all.py
blog/management/commands/reindex_all.py
Copy file name to clipboardExpand all lines: blog/management/commands/reindex_all.py+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + |
Collapse file: blog/management/commands/validate_entries_xml.py
blog/management/commands/validate_entries_xml.py
Copy file name to clipboardExpand all lines: blog/management/commands/validate_entries_xml.py+5-5Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + |
Collapse file: blog/migrations/0001_initial.py
blog/migrations/0001_initial.py
Copy file name to clipboardExpand all lines: blog/migrations/0001_initial.py+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
|
Collapse file: blog/migrations/0002_auto_20150713_0551.py
blog/migrations/0002_auto_20150713_0551.py
Copy file name to clipboardExpand all lines: blog/migrations/0002_auto_20150713_0551.py+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
|
Collapse file: blog/migrations/0003_auto_20170926_0641.py
blog/migrations/0003_auto_20170926_0641.py
Copy file name to clipboardExpand all lines: blog/migrations/0003_auto_20170926_0641.py+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
| 3 | + | |
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
|
Collapse file: blog/migrations/0004_metadata_json.py
blog/migrations/0004_metadata_json.py
Copy file name to clipboardExpand all lines: blog/migrations/0004_metadata_json.py+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
| 3 | + | |
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
|
You can’t perform that action at this time.
0 commit comments