Skip to content

Commit

Permalink
Merge pull request #45 from cs50/develop
Browse files Browse the repository at this point in the history
normalizes whitespace in log
  • Loading branch information
dmalan authored Nov 8, 2017
2 parents 55ea312 + f9a239b commit 486715c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Up @@ -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):
Expand Down

0 comments on commit 486715c

Please sign in to comment.