diff --git a/main.py b/main.py index 5b13e89..a4781c0 100644 --- a/main.py +++ b/main.py @@ -18,7 +18,7 @@ class Universite: def ecrirePageHTML(self, texte): """Affiche la page HTML pour le debug.""" - with open("page.html", "w") as f: + with open("page.html", 'w') as f: f.write(texte) def recuperationNotes(self): @@ -55,8 +55,8 @@ class Universite: for attrs in soup.findAll("table"): try: texte = str(attrs).split("thead")[1][2:-2] - while ' ' in texte: - texte = texte.replace(' ', ' ') + while " " in texte: + texte = texte.replace(" ", ' ') return texte except: pass