| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -102,7 +102,7 @@ Using json.tool from the shell to validate and pretty-print:: | |||
| 102 | 102 | "json": "obj" | |
| 103 | 103 | } | |
| 104 | 104 | $ echo '{1.2:3.4}' | python -mjson.tool | |
| 105 | - Expecting property name enclosed in double quotes: line 1 column 1 (char 1) | ||
| 105 | + Expecting property name enclosed in double quotes: line 1 column 2 (char 1) | ||
| 106 | 106 | ||
| 107 | 107 | .. highlight:: python3 | |
| 108 | 108 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -97,7 +97,7 @@ | |||
| 97 | 97 | "json": "obj" | |
| 98 | 98 | } | |
| 99 | 99 | $ echo '{ 1.2:3.4}' | python -m json.tool | |
| 100 | - Expecting property name enclosed in double quotes: line 1 column 2 (char 2) | ||
| 100 | + Expecting property name enclosed in double quotes: line 1 column 3 (char 2) | ||
| 101 | 101 | """ | |
| 102 | 102 | __version__ = '2.0.9' | |
| 103 | 103 | __all__ = [ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,7 +32,7 @@ def linecol(doc, pos): | |||
| 32 | 32 | newline = '\n' | |
| 33 | 33 | lineno = doc.count(newline, 0, pos) + 1 | |
| 34 | 34 | if lineno == 1: | |
| 35 | - colno = pos | ||
| 35 | + colno = pos + 1 | ||
| 36 | 36 | else: | |
| 37 | 37 | colno = pos - doc.rindex(newline, 0, pos) | |
| 38 | 38 | return lineno, colno | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ | |||
| 7 | 7 | "json": "obj" | |
| 8 | 8 | } | |
| 9 | 9 | $ echo '{ 1.2:3.4}' | python -m json.tool | |
| 10 | - Expecting property name enclosed in double quotes: line 1 column 2 (char 2) | ||
| 10 | + Expecting property name enclosed in double quotes: line 1 column 3 (char 2) | ||
| 11 | 11 | ||
| 12 | 12 | """ | |
| 13 | 13 | import sys | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -181,6 +181,9 @@ Core and Builtins | |||
| 181 | 181 | Library | |
| 182 | 182 | ------- | |
| 183 | 183 | ||
| 184 | + - Issue #17225: JSON decoder now counts columns in the first line starting | ||
| 185 | + with 1, as in other lines. | ||
| 186 | + | ||
| 184 | 187 | - Issue #13700: Fix byte/string handling in imaplib authentication when an | |
| 185 | 188 | authobject is specified. | |
| 186 | 189 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments