From e6e55fd517832c5d2914ca2cfb958bfd626baca8 Mon Sep 17 00:00:00 2001 From: Tomas Kukosa Date: Wed, 23 May 2007 19:35:29 +0000 Subject: small fix in duplicate type warning svn path=/trunk/; revision=21911 --- tools/asn2wrs.py | 5 +---- 1 file changed, 1 insertion(+), 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() -- cgit v1.2.1