From 366b94c4a9552acfb560d3234aea0955ebc1eb8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sun, 30 Jun 2019 15:01:11 +0000 Subject: Vendor import of Unbound 1.9.2. --- pythonmod/doc/examples/example0-1.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pythonmod/doc/examples/example0-1.py') diff --git a/pythonmod/doc/examples/example0-1.py b/pythonmod/doc/examples/example0-1.py index 5ae48d16674ae..7904f73a55e8a 100644 --- a/pythonmod/doc/examples/example0-1.py +++ b/pythonmod/doc/examples/example0-1.py @@ -1,8 +1,11 @@ - def init(id, cfg): log_info("pythonmod: init called, module id is %d port: %d script: %s" % (id, cfg.port, cfg.python_script)) return True +def init_standard(id, env): + log_info("pythonmod: init called, module id is %d port: %d script: %s" % (id, env.cfg.port, env.cfg.python_script)) + return True + def deinit(id): log_info("pythonmod: deinit called, module id is %d" % id) return True -- cgit v1.2.3