[whos] On doit pouvoir se passer de try import sys
This commit is contained in:
parent
b50bb20cbd
commit
df21e43a91
1 changed files with 10 additions and 17 deletions
|
@ -43,26 +43,21 @@ d'historique des déconnexions affichées (défaut %(limit_aff_blacklist)i)
|
||||||
-6 ou --ipv6 : affiche les ipv6 dans l'affichage synthétique
|
-6 ou --ipv6 : affiche les ipv6 dans l'affichage synthétique
|
||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
import commands
|
||||||
import sys,locale
|
import getopt
|
||||||
|
import subprocess
|
||||||
loc = locale.getdefaultlocale()
|
import sys
|
||||||
if loc[1]:
|
|
||||||
sys.reallysetdefaultencoding(loc[1])
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
base = None
|
|
||||||
|
|
||||||
from time import strftime, localtime, time
|
from time import strftime, localtime, time
|
||||||
|
|
||||||
|
from affich_tools import *
|
||||||
from ldap_crans import is_actif, crans_ldap, AssociationCrans, hostname
|
from ldap_crans import is_actif, crans_ldap, AssociationCrans, hostname
|
||||||
from ldap_crans import MachineCrans, MachineWifi, BorneWifi
|
from ldap_crans import MachineCrans, MachineWifi, BorneWifi
|
||||||
from ldap_crans import Adherent
|
from ldap_crans import Adherent
|
||||||
from affich_tools import *
|
|
||||||
import gestion.config as config
|
import gestion.config as config
|
||||||
import user_tests
|
|
||||||
import subprocess, commands
|
|
||||||
import ridtools
|
import ridtools
|
||||||
|
import user_tests
|
||||||
|
|
||||||
|
base = None
|
||||||
|
|
||||||
limit_aff_details = 1
|
limit_aff_details = 1
|
||||||
limit_aff_machines = 15
|
limit_aff_machines = 15
|
||||||
|
@ -1495,8 +1490,6 @@ if __name__ == '__main__' :
|
||||||
global debug
|
global debug
|
||||||
debug = 0
|
debug = 0
|
||||||
|
|
||||||
import sys, getopt
|
|
||||||
|
|
||||||
base = crans_ldap()
|
base = crans_ldap()
|
||||||
|
|
||||||
try :
|
try :
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue