def sanitize_tags(self, tags): if 'opening_hours' not in tags: return try: sanitized_field = sanitize_field(tags['opening_hours']) if sanitized_field.replace(' ', '').replace('0', '').lower() != tags['opening_hours'].replace(' ', '').replace('0', '').lower(): # Ignore sapce and 0 changes return {"class": 32501, "subclass": 0, 'fix': {'opening_hours': sanitized_field}} except InconsistentField as e: return {"class": 32501, "subclass": 1, 'text': {'en': str(e)}} except SanitizeError: return {"class": 32501, "subclass": 2}