mirror of
https://github.com/mirror/wget.git
synced 2025-01-03 00:40:28 +08:00
11 lines
312 B
Python
11 lines
312 B
Python
|
from conf import rule
|
||
|
|
||
|
|
||
|
@rule(alias='SampleRuleAlias')
|
||
|
class SampleRule:
|
||
|
def __init__(self, rule):
|
||
|
# do rule initialization here
|
||
|
# you may also need to implement a method the same name of this
|
||
|
# class in server/protocol/protocol_server.py to apply this rule.
|
||
|
self.rule = rule
|