[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
|
||||
"""
|
||||
|
||||
try:
|
||||
import sys,locale
|
||||
|
||||
loc = locale.getdefaultlocale()
|
||||
if loc[1]:
|
||||
sys.reallysetdefaultencoding(loc[1])
|
||||
except:
|
||||
pass
|
||||
|
||||
base = None
|
||||
|
||||
import commands
|
||||
import getopt
|
||||
import subprocess
|
||||
import sys
|
||||
from time import strftime, localtime, time
|
||||
|
||||
from affich_tools import *
|
||||
from ldap_crans import is_actif, crans_ldap, AssociationCrans, hostname
|
||||
from ldap_crans import MachineCrans, MachineWifi, BorneWifi
|
||||
from ldap_crans import Adherent
|
||||
from affich_tools import *
|
||||
import gestion.config as config
|
||||
import user_tests
|
||||
import subprocess, commands
|
||||
import ridtools
|
||||
import user_tests
|
||||
|
||||
base = None
|
||||
|
||||
limit_aff_details = 1
|
||||
limit_aff_machines = 15
|
||||
|
@ -1495,8 +1490,6 @@ if __name__ == '__main__' :
|
|||
global debug
|
||||
debug = 0
|
||||
|
||||
import sys, getopt
|
||||
|
||||
base = crans_ldap()
|
||||
|
||||
try :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue