mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Removed useless variable
This commit is contained in:
parent
75dd3e5b1d
commit
81b95d7841
1 changed files with 4 additions and 8 deletions
|
@ -101,14 +101,10 @@ def anonymize(data):
|
|||
indexes = [0 for x in range(length-len(indexes))] + indexes
|
||||
return sep.join([ chars[x]*2 for x in indexes ])
|
||||
|
||||
counter = 0
|
||||
for ip in ipsv4:
|
||||
data = data.replace(str(ip),gen_anonymized_ip(4,counter))
|
||||
counter +=1
|
||||
for i,ip in enumerate(ipsv4):
|
||||
data = data.replace(str(ip),gen_anonymized_ip(4,i))
|
||||
|
||||
counter = 0
|
||||
for ip in ipsv6:
|
||||
data = data.replace(str(ip),gen_anonymized_ip(6,counter,sep=":"))
|
||||
counter +=1
|
||||
for i,ip in enumerate(ipsv6):
|
||||
data = data.replace(str(ip),gen_anonymized_ip(6,i,sep=":"))
|
||||
|
||||
return data
|
||||
|
|
Loading…
Add table
Reference in a new issue