Skip to content

Commit 4ea920f

Browse files
committed
using pathlib
1 parent 76550fc commit 4ea920f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tfinance/stock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def check_stock(stock_name: str) -> bool:
3434

3535
# Сохранение списка акций в json.
3636
def save_stocks(file_name: str, stocks: list):
37-
with Path(f"{Path.cwd()}/{file_name}").open("w") as f:
37+
with (Path.cwd() / file_name).open("w") as f:
3838
json.dump(stocks, f)
3939

4040

0 commit comments

Comments
 (0)