[pypy-svn] r42102 - pypy/dist/pypy/lib/pyontology

tismer at codespeak.net tismer at codespeak.net
Mon Apr 16 18:03:32 CEST 2007

Author: tismer
Date: Mon Apr 16 18:03:32 2007
New Revision: 42102

typos, removed debug calls, enabled verbose, again

Modified: pypy/dist/pypy/lib/pyontology/constraint_classes.py
--- pypy/dist/pypy/lib/pyontology/constraint_classes.py	(original)
+++ pypy/dist/pypy/lib/pyontology/constraint_classes.py	Mon Apr 16 18:03:32 2007
@@ -3,6 +3,13 @@
 from logilab.constraint.distributors import DichotomyDistributor, SplitDistributor
 from logilab.constraint.fd import Expression
 from rdflib import URIRef
+    # not sure if we have this when running on PyPy
+    # this is needed for verbose, only (see solve method)
+    from time import strftime
+except ImportError:
+    pass
 import autopath
 import py
 from pypy.tool.ansi_print import ansi_log

Modified: pypy/dist/pypy/lib/pyontology/pyontology.py
--- pypy/dist/pypy/lib/pyontology/pyontology.py	(original)
+++ pypy/dist/pypy/lib/pyontology/pyontology.py	Mon Apr 16 18:03:32 2007
@@ -415,7 +415,7 @@
     """ A owl:restriction is an anonymous class that links a class to a restriction on a property
         The restriction is only applied to the property in the conntext of the specific task. In order
         to construct a constraint to check the restriction three things are thus needed :
-            1. The property to which the restriction applies - this comes from the onProperty tripple.
+            1. The property to which the restriction applies - this comes from the onProperty triple.
                 the property is saved in the Restriction class' property attribute
             2. The restriction itself. This comes from one of the property restrictions triples (oneOf,
                 maxCardinality ....). It adds a constraint class

More information about the Pypy-commit mailing list