Skip to content

Commit

Permalink
Make iptc.xtables.xtables_version public.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldx committed Feb 28, 2015
1 parent 204e394 commit 4627e94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions iptc/xtables.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ class XTablesError(Exception):
_optind = ct.c_long.in_dll(_libc, "optind")
_optarg = ct.c_char_p.in_dll(_libc, "optarg")

_lib_xtables, _xtables_version = find_library("xtables")
_lib_xtables, xtables_version = find_library("xtables")
_xtables_libdir = os.getenv("XTABLES_LIBDIR")
if _xtables_libdir is None:
import os.path
Expand Down Expand Up @@ -800,14 +800,14 @@ def _xtinit(self, proto, no_alias_check=False):
self._xt_globals.exit_err = _xt_exit

thismodule = sys.modules[__name__]
matchname = "_xtables_match_v%d" % (_xtables_version)
targetname = "_xtables_target_v%d" % (_xtables_version)
matchname = "_xtables_match_v%d" % (xtables_version)
targetname = "_xtables_target_v%d" % (xtables_version)
try:
self._match_struct = getattr(thismodule, matchname)
self._target_struct = getattr(thismodule, targetname)
except:
raise XTablesError("unknown xtables version %d" %
(_xtables_version))
(xtables_version))

self._loaded_exts = set()

Expand Down

0 comments on commit 4627e94

Please sign in to comment.