Skip to content

Commit 031b8f9

Browse files
committed
Cleaned up some stuff based on CircleCi feedback.
1 parent 68b10ec commit 031b8f9

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

python-sqlite-sqlalchemy/project/build_data/build_author_book_publisher_sqlite.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,17 @@ def main():
6969
print("starting")
7070

7171
# get the author/book/publisher data into a dictionary structure
72-
csv_filepath = resource_filename("project.data", "author_book_publisher.csv")
72+
csv_filepath = resource_filename(
73+
"project.data",
74+
"author_book_publisher.csv"
75+
)
7376
author_book_publisher_data = get_author_book_publisher_data(csv_filepath)
7477

7578
# get the filepath to the database file
76-
sqlite_filepath = resource_filename("project.data", "author_book_publisher.db")
79+
sqlite_filepath = resource_filename(
80+
"project.data",
81+
"author_book_publisher.db"
82+
)
7783

7884
# does the database exist?
7985
if os.path.exists(sqlite_filepath):

python-sqlite-sqlalchemy/project/examples/example_2/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
This program gathers information from the database file about temperature
33
"""
44

5-
import os
65
from pkg_resources import resource_filename
76
from datetime import datetime
87
from datetime import timedelta

0 commit comments

Comments
 (0)