frame: use helpers (no.2)
@@ -83,7 +83,7 @@ class Py3status:
def post_config_hook(self):
self.urgent = False
- if '{button}' not in self.format:
+ if not self.py3.format_contains(self.format, 'button'):
self.open = True
self.py3.register_function('urgent_function', self._urgent_function)
