[gestion/*.py] Ré-encodage de certains scripts en UTF-8
Ignore-this: dafa22ed56eaf0d816fd089e42672eb5 darcs-hash:20090309212124-0445d-09ac8ae4052b6f333706be1baa1c7f4d94455fd5.gz
This commit is contained in:
parent
7addc503a8
commit
cc31727b60
21 changed files with 1351 additions and 1351 deletions
|
@ -1,5 +1,5 @@
|
|||
#! /usr/bin/env python
|
||||
# -*- coding: iso-8859-15 -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
Mise a jour periodique des listes d'ip et d'id disponibles.
|
||||
|
@ -42,7 +42,7 @@ def lister_ip_utilisees():
|
|||
|
||||
def update_ip(plage, occupees):
|
||||
net = NETs[plage]
|
||||
pool_ip = [] # Pool d'IP à tester
|
||||
pool_ip = [] # Pool d'IP à tester
|
||||
for ne in net:
|
||||
ip = ne.split('/')[0]
|
||||
ip = ip.split('.')
|
||||
|
@ -58,7 +58,7 @@ def update_ip(plage, occupees):
|
|||
if n[2] == 255: break
|
||||
ip = "%d.%d.%d.%d" % tuple(n)
|
||||
if not AddrInNet(ip, ne):
|
||||
# On est allé trop loin
|
||||
# On est allé trop loin
|
||||
break
|
||||
pool_ip.append(ip)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue