Skip to content

Commit dcf72b4

Browse files
committed
Use get_tables() instead of table.ALL
1 parent 05f8b89 commit dcf72b4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

iptc/easy.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ def flush_chain(table, chain, ipv6=False, raise_exc=True):
2929

3030
def zero_all(table, ipv6=False):
3131
""" Zero all tables """
32-
table_cls = Table6 if ipv6 else Table
33-
for table in table_cls.ALL:
32+
for table in get_tables(ipv6):
3433
zero_table(table, ipv6)
3534

3635
def zero_table(table, ipv6=False):

0 commit comments

Comments
 (0)