]>
git.madduck.net Git - etc/vim.git/commitdiff
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
368f043 )
.coverage
_build
.DS_Store
.coverage
_build
.DS_Store
.dmypy.json
*.swp
.hypothesis/
.dmypy.json
*.swp
.hypothesis/
+venv/
\ No newline at end of file
def format_hex(text: str) -> str:
"""
def format_hex(text: str) -> str:
"""
- Formats a hexadecimal string like "0x12b3"
-
- Uses lowercase because of similarity between "B" and "8", which
- can cause security issues.
- see: https://github.com/psf/black/issues/1692
+ Formats a hexadecimal string like "0x12B3"
before, after = text[:2], text[2:]
before, after = text[:2], text[2:]
- return f"{before}{after.low er()}"
+ return f"{before}{after.upp er()}"
def format_scientific_notation(text: str) -> str:
def format_scientific_notation(text: str) -> str:
},
"attrs": {
"cli_arguments": [],
},
"attrs": {
"cli_arguments": [],
- "expect_formatting_changes": tru e,
+ "expect_formatting_changes": fals e,
"git_clone_url": "https://github.com/python-attrs/attrs.git",
"long_checkout": false,
"py_versions": ["all"]
"git_clone_url": "https://github.com/python-attrs/attrs.git",
"long_checkout": false,
"py_versions": ["all"]
},
"hypothesis": {
"cli_arguments": [],
},
"hypothesis": {
"cli_arguments": [],
- "expect_formatting_changes": tru e,
+ "expect_formatting_changes": fals e,
"git_clone_url": "https://github.com/HypothesisWorks/hypothesis.git",
"long_checkout": false,
"py_versions": ["all"]
"git_clone_url": "https://github.com/HypothesisWorks/hypothesis.git",
"long_checkout": false,
"py_versions": ["all"]
},
"pillow": {
"cli_arguments": [],
},
"pillow": {
"cli_arguments": [],
- "expect_formatting_changes": tru e,
+ "expect_formatting_changes": fals e,
"git_clone_url": "https://github.com/python-pillow/Pillow.git",
"long_checkout": false,
"py_versions": ["all"]
"git_clone_url": "https://github.com/python-pillow/Pillow.git",
"long_checkout": false,
"py_versions": ["all"]
},
"pyramid": {
"cli_arguments": [],
},
"pyramid": {
"cli_arguments": [],
- "expect_formatting_changes": tru e,
+ "expect_formatting_changes": fals e,
"git_clone_url": "https://github.com/Pylons/pyramid.git",
"long_checkout": false,
"py_versions": ["all"]
"git_clone_url": "https://github.com/Pylons/pyramid.git",
"long_checkout": false,
"py_versions": ["all"]
},
"virtualenv": {
"cli_arguments": [],
},
"virtualenv": {
"cli_arguments": [],
- "expect_formatting_changes": tru e,
+ "expect_formatting_changes": fals e,
"git_clone_url": "https://github.com/pypa/virtualenv.git",
"long_checkout": false,
"py_versions": ["all"]
"git_clone_url": "https://github.com/pypa/virtualenv.git",
"long_checkout": false,
"py_versions": ["all"]
import sys
from io import StringIO
import sys
from io import StringIO
-HUGE: int = 0x7fffffff # maximum repeat count, default max
+HUGE: int = 0x7FFFFFFF # maximum repeat count, default max
_type_reprs: Dict[int, Union[Text, int]] = {}
_type_reprs: Dict[int, Union[Text, int]] = {}
x = 123456789E123456789
x = 123456789J
x = 123456789.123456789J
x = 123456789E123456789
x = 123456789J
x = 123456789.123456789J
x = 0B1011
x = 0O777
x = 0.000000006
x = 0B1011
x = 0O777
x = 0.000000006
x = 123456789e123456789
x = 123456789j
x = 123456789.123456789j
x = 123456789e123456789
x = 123456789j
x = 123456789.123456789j
x = 0b1011
x = 0o777
x = 0.000000006
x = 0b1011
x = 0o777
x = 0.000000006
x = 123456789L
x = 123456789l
x = 123456789
x = 123456789L
x = 123456789l
x = 123456789
x = 123456789L
x = 123456789L
x = 123456789
x = 123456789L
x = 123456789L
x = 123456789
x = 123456789
x = 1_2_3_4_5_6_7
x = 1E+1
x = 123456789
x = 1_2_3_4_5_6_7
x = 1E+1
x = 0.00_00_006
x = 12_34_567J
x = .1_2
x = 0.00_00_006
x = 12_34_567J
x = .1_2
x = 123456789
x = 1_2_3_4_5_6_7
x = 1e1
x = 123456789
x = 1_2_3_4_5_6_7
x = 1e1
x = 0.00_00_006
x = 12_34_567j
x = 0.1_2
x = 0.00_00_006
x = 12_34_567j
x = 0.1_2
+x = 1_2.0
\ No newline at end of file