Skip to content

Commit

Permalink
Convert old-style strings to f-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
GhostofGoes committed Oct 13, 2023
1 parent bec556f commit 0836fd3
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 106 deletions.
2 changes: 1 addition & 1 deletion docs/TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@


## Breaking changes (or potentially breaking)
- [ ] rewrite strings to f-strings
- [x] rewrite strings to f-strings
- [ ] CLI: put "override" and other debugging-related arguments into a separate argparse argument group
- [ ] Split getmac.py into separate files for methods, utils, etc.
- [x] Refactor how global variables are handled
Expand Down
2 changes: 1 addition & 1 deletion getmac/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def main() -> None:
"interfaces or remote hosts on the LAN",
)
parser.add_argument(
"--version", action="version", version="getmac %s" % getmac.__version__
"--version", action="version", version=f"getmac {getmac.__version__}"
)
parser.add_argument(
"-v", "--verbose", action="store_true", help="Enable output messages"
Expand Down
Loading

0 comments on commit 0836fd3

Please sign in to comment.