Skip to content

Commit ad16876

Browse files
committed
Remove running _print_verions as script
1 parent d27a235 commit ad16876

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

pandas/util/_print_versions.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -132,29 +132,3 @@ def show_versions(as_json: str | bool = False) -> None:
132132
print("")
133133
for k, v in deps.items():
134134
print(f"{k:<{maxlen}}: {v}")
135-
136-
137-
def main() -> int:
138-
from optparse import OptionParser
139-
140-
parser = OptionParser()
141-
parser.add_option(
142-
"-j",
143-
"--json",
144-
metavar="FILE",
145-
nargs=1,
146-
help="Save output as JSON into file, pass in '-' to output to stdout",
147-
)
148-
149-
(options, args) = parser.parse_args()
150-
151-
if options.json == "-":
152-
options.json = True
153-
154-
show_versions(as_json=options.json)
155-
156-
return 0
157-
158-
159-
if __name__ == "__main__":
160-
sys.exit(main())

0 commit comments

Comments
 (0)