diff options
author | kukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-05-23 19:35:29 +0000 |
---|---|---|
committer | kukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-05-23 19:35:29 +0000 |
commit | f2dbde417272b98145ea051f324a15f15b77de73 (patch) | |
tree | deedf81ae0a2361c599f628701201bb56ceabb79 /tools | |
parent | f8539f7946a966de180ea9f7d510657f1c1c537c (diff) |
small fix in duplicate type warning
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21911 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/asn2wrs.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/asn2wrs.py b/tools/asn2wrs.py index 37b6342133..4e77b83aab 100755 --- a/tools/asn2wrs.py +++ b/tools/asn2wrs.py @@ -1532,11 +1532,8 @@ class EthCtx: for t in tmplist: msg = "The same type names for different types. Explicit type renaming is recommended.\n" msg += t + "\n" - x = '' for tt in self.eth_type_dupl[t]: - msg += " %-20s %s\n" % (t+str(x), tt) - if not x: x = 1 - else: x += 1 + msg += " %-20s %s\n" % (self.type[tt]['ethname'], tt) warnings.warn_explicit(msg, UserWarning, '', '') # fields tmplist = self.eth_hf_dupl.keys() |