fix swi call leak
improve yapi reformat
This commit is contained in:
@@ -6,6 +6,7 @@ from pyswip.easy import getList, registerForeign
|
||||
|
||||
class Notifier:
|
||||
def __init__(self, fun):
|
||||
# type: (object) -> object
|
||||
self.fun = fun
|
||||
|
||||
def notify(self, t):
|
||||
@@ -15,6 +16,7 @@ class Notifier:
|
||||
|
||||
class Tower:
|
||||
def __init__(self, N=3, interactive=False):
|
||||
# type: (object, object) -> object
|
||||
"""N is the number of disks
|
||||
"""
|
||||
self.N = N
|
||||
|
@@ -12,6 +12,7 @@ URL = "http://www.sudoku.org.uk/daily.asp"
|
||||
|
||||
class DailySudokuPuzzle(HTMLParser):
|
||||
def __init__(self):
|
||||
# type: () -> object
|
||||
self.puzzle = []
|
||||
self.__in_td = False
|
||||
HTMLParser.__init__(self)
|
||||
|
Reference in New Issue
Block a user