Browse Source

Remove debugging statements; doc tweaks.

Stefano Cossu 4 years ago
parent
commit
50d9b96e66

+ 1 - 1
docs/contributing.rst

@@ -33,7 +33,7 @@ Modifying Cython Modules
 Cython files must be recompiled into C files and then into binary files every
 Cython files must be recompiled into C files and then into binary files every
 time they are changed. To recompile Lakesuperior modules, run::
 time they are changed. To recompile Lakesuperior modules, run::
 
 
-    python setup.py --build_ext --inplace
+    python setup.py build_ext --inplace
 
 
 For a faster compilation while testing, the environment variable ``CFLAGS``
 For a faster compilation while testing, the environment variable ``CFLAGS``
 can set to ``-O0`` to turn off compiler optimization. The runtime code may run
 can set to ``-O0`` to turn off compiler optimization. The runtime code may run

+ 6 - 0
lakesuperior/__init__.py

@@ -17,6 +17,12 @@ referenced or copied with a known path relative to the package root.
 """
 """
 
 
 class Env:
 class Env:
+    """
+    Lakesuperior environment.
+
+    Instances of this class contain the environment necessary to run a
+    self-standing instance of Lakesuperior in a Python environment.
+    """
     pass
     pass
 
 
 env = Env()
 env = Env()

+ 1 - 1
lakesuperior/model/rdf/graph.pyx

@@ -520,7 +520,7 @@ cdef class Graph:
         This function converts RDFLib terms into the serialized format stored
         This function converts RDFLib terms into the serialized format stored
         in the graph's internal structure and compares them bytewise.
         in the graph's internal structure and compares them bytewise.
 
 
-        Any and all of the lookup terms msy be ``None``.
+        Any and all of the lookup terms may be ``None``.
 
 
         :rtype: Graph
         :rtype: Graph
         :return: New Graph instance with matching triples.
         :return: New Graph instance with matching triples.

+ 2 - 2
lakesuperior/store/base_lmdb_store.pyx

@@ -295,9 +295,9 @@ cdef class BaseLmdbStore:
 
 
 
 
     cpdef void close_env(self, bint commit_pending_transaction=False) except *:
     cpdef void close_env(self, bint commit_pending_transaction=False) except *:
-        logger.debug('Cleaning up store env.')
+        #logger.debug('Cleaning up store env.')
         if self.is_open:
         if self.is_open:
-            logger.debug('Closing store env.')
+            #logger.debug('Closing store env.')
             if self.is_txn_open is True:
             if self.is_txn_open is True:
                 if commit_pending_transaction:
                 if commit_pending_transaction:
                     self._txn_commit()
                     self._txn_commit()