From ad7b1ad64eeb22862516f4a163af73450e8ab5a1 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 21 Jul 2014 01:33:46 +0300 Subject: [PATCH] sqlite3: Less obtrusive debug output. --- sqlite3/metadata.txt | 2 +- sqlite3/setup.py | 2 +- sqlite3/sqlite3.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sqlite3/metadata.txt b/sqlite3/metadata.txt index 4f7d8418..d2e1fd37 100644 --- a/sqlite3/metadata.txt +++ b/sqlite3/metadata.txt @@ -1,4 +1,4 @@ srctype = micropython-lib type = module -version = 0.2 +version = 0.2.1 author = Paul Sokolovsky diff --git a/sqlite3/setup.py b/sqlite3/setup.py index 12a6fdf3..2aa62a90 100644 --- a/sqlite3/setup.py +++ b/sqlite3/setup.py @@ -6,7 +6,7 @@ from setuptools import setup setup(name='micropython-sqlite3', - version='0.2', + version='0.2.1', description='sqlite3 module for MicroPython', long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.", url='https://github.com/micropython/micropython/issues/405', diff --git a/sqlite3/sqlite3.py b/sqlite3/sqlite3.py index 6cf528c7..a494eac9 100644 --- a/sqlite3/sqlite3.py +++ b/sqlite3/sqlite3.py @@ -88,9 +88,9 @@ class Cursor: s = sqlite3_prepare(self.h, sql, -1, b, None) check_error(self.h, s) self.stmnt = int.from_bytes(b) - print("stmnt", self.stmnt) + #print("stmnt", self.stmnt) self.num_cols = sqlite3_column_count(self.stmnt) - print("num_cols", self.num_cols) + #print("num_cols", self.num_cols) # If it's not select, actually execute it here # num_cols == 0 for statements which don't return data (=> modify it) if not self.num_cols: