Skip to content

Commit

Permalink
Fix for Python 2.7 and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasgrubenmann committed Mar 4, 2021
1 parent 06d74c9 commit 6df6a31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyswip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
# PySwip version
__VERSION__ = "0.2.11"

from pyswip.easy import *
from pyswip.prolog import Prolog
from pyswip.easy import *
2 changes: 1 addition & 1 deletion tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def test_large_db(self):
num_facts = 1250000
prolog = Prolog()
for i in range(num_facts):
prolog.assertz(f'p({i})')
prolog.assertz('p(%s)' % i)

results = [r for r in prolog.query('p(I)')]
self.assertEqual(len(results), num_facts)
Expand Down

0 comments on commit 6df6a31

Please sign in to comment.