Skip to content

Replaced .format with f- strings #31660

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Feb 5, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Replace .format with f-strings
  • Loading branch information
leandermaben committed Feb 3, 2020
commit c3d341c49a6bd0f9632bd135ba28a9d5a3ed6034
7 changes: 3 additions & 4 deletions pandas/util/_print_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,13 @@ def show_versions(as_json=False):

else:
maxlen = max(len(x) for x in deps)
tpl = f"{k}:<{maxlen}: {stat}"
print("\nINSTALLED VERSIONS")
print("------------------")
for k, stat in sys_info:
print(tpl)
print(f"{k}:<{maxlen}: {stat}")
print("")
for k, stat in deps_blob:
print(tpl)
print(f"{k}:<{maxlen}: {stat}")


def main() -> int:
Expand All @@ -147,4 +146,4 @@ def main() -> int:


if __name__ == "__main__":
sys.exit(main())
sys.exit(main())