Skip to content

normalizes whitespace in log #45

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 8 commits into from
Nov 8, 2017
Merged
Changes from all commits
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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -16,5 +16,5 @@
package_dir={"": "src"},
packages=["cs50"],
url="https://github.com/cs50/python-cs50",
version="2.3.1"
version="2.3.2"
)
2 changes: 1 addition & 1 deletion src/cs50/sql.py
Original file line number Diff line number Diff line change
@@ -123,7 +123,7 @@ def process(value):
result = self.engine.execute(statement)

# log statement
self.logger.debug(statement)
self.logger.debug(re.sub(r"\n\s*", " ", sqlparse.format(statement, reindent=True)))

# if SELECT (or INSERT with RETURNING), return result set as list of dict objects
if re.search(r"^\s*SELECT", statement, re.I):