Skip to content

Commit e8973c5

Browse files
committed
debug: slightly nicer wrapping of the sqlite3 debug info
1 parent 5deb165 commit e8973c5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

coverage/sqldata.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import socket
1818
import sqlite3
1919
import sys
20+
import textwrap
2021
import threading
2122
import zlib
2223

@@ -996,9 +997,7 @@ def sys_info(cls):
996997
with SqliteDb(":memory:", debug=NoDebugging()) as db:
997998
temp_store = [row[0] for row in db.execute("pragma temp_store")]
998999
copts = [row[0] for row in db.execute("pragma compile_options")]
999-
# Yes, this is overkill. I don't like the long list of options
1000-
# at the end of "debug sys", but I don't want to omit information.
1001-
copts = ["; ".join(copts[i:i + 3]) for i in range(0, len(copts), 3)]
1000+
copts = textwrap.wrap(", ".join(copts), width=75)
10021001

10031002
return [
10041003
("sqlite3_version", sqlite3.version),

0 commit comments

Comments
 (0)