From bdb8b395b5e3fb82a89850a4ba02bd414d0aeaae Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sat, 26 Sep 2015 17:51:21 -0700 Subject: [PATCH] database: make py3-compatible --- src/wormhole/database.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wormhole/database.py b/src/wormhole/database.py index f6944ff..d9a52d8 100644 --- a/src/wormhole/database.py +++ b/src/wormhole/database.py @@ -6,7 +6,8 @@ class DBError(Exception): pass def get_schema(version): - return resource_string("wormhole", "db-schemas/v%d.sql" % version) + schema_bytes = resource_string("wormhole", "db-schemas/v%d.sql" % version) + return schema_bytes.decode("utf-8") def get_db(dbfile, stderr=sys.stderr): """Open or create the given db file. The parent directory must exist.