We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1e0752 commit 531a430Copy full SHA for 531a430
pandas/tests/tseries/frequencies/test_to_offset.py
@@ -86,7 +86,7 @@ def test_to_offset_invalid(freqstr):
86
87
# We escape string because some of our
88
# inputs contain regex special characters.
89
- msg = re.escape("Invalid frequency: {freqstr}".format(freqstr=freqstr))
+ msg = re.escape(f"Invalid frequency: {freqstr}")
90
with pytest.raises(ValueError, match=msg):
91
frequencies.to_offset(freqstr)
92
pandas/util/_print_versions.py
@@ -43,7 +43,8 @@ def get_sys_info() -> List[Tuple[str, Optional[Union[str, int]]]]:
43
("python-bits", struct.calcsize("P") * 8),
44
("OS", f"{sysname}"),
45
("OS-release", f"{release}"),
46
- # ("Version", "{version}".format(version=version)),
+ # FIXME: dont leave commented-out
47
+ # ("Version", f"{version}"),
48
("machine", f"{machine}"),
49
("processor", f"{processor}"),
50
("byteorder", f"{sys.byteorder}"),
@@ -114,14 +115,13 @@ def show_versions(as_json=False):
114
115
116
else:
117
maxlen = max(len(x) for x in deps)
- tpl = "{{k:<{maxlen}}}: {{stat}}".format(maxlen=maxlen)
118
print("\nINSTALLED VERSIONS")
119
print("------------------")
120
for k, stat in sys_info:
121
- print(tpl.format(k=k, stat=stat))
+ print(f"{{k:<{maxlen}}}: {{stat}}")
122
print("")
123
for k, stat in deps_blob:
124
125
126
127
def main() -> int:
0 commit comments