Reformatage #29

Closed
thubrecht wants to merge 19 commits from thubrecht/python3 into master
2 changed files with 1 additions and 2 deletions
Showing only changes of commit f7ac3313c8 - Show all commits

View file

@ -107,7 +107,6 @@ def handle_cas_connection(sender, instance, created, cas_login, attributes, **kw
year = dirs[2] year = dirs[2]
departement = dirs[3] departement = dirs[3]
print(departement, dirs)
dep = dict(DEPARTEMENTS_DEFAUT).get(departement.lower(), "") dep = dict(DEPARTEMENTS_DEFAUT).get(departement.lower(), "")

View file

@ -19,4 +19,4 @@ def approximate_distance(a, b):
def is_email_ens(mail, none=False): def is_email_ens(mail, none=False):
if mail is None: if mail is None:
return none return none
return mail.endswith(".ens.fr") or mail.endswith(".ens.psl.eu") return mail.endswith("ens.fr") or mail.endswith("ens.psl.eu")