

def append_write_rule(self, filename_pattern, action):
    'Adds a rule associating a filename pattern with an action for write\n        requests. The action given will execute when a write request is\n        completed and all data received.\n\n        Args:\n            filename_pattern: A string pattern to match future read request\n                filenames against.\n            action: A function to invoke when a later read request arrives\n                matching the given filename_pattern.\n        '
    self.write_rules.append((self, action))

dataset/ETHPy150Open dropbox/emmer/emmer/response_router.py ResponseRouter.append_write_rule/VarMisuse@23/170 `filename_pattern`->`self`