From 760775c6041e80e9f9d4c335852c2807415afa32 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 13 Jan 2022 22:53:43 +0100 Subject: [PATCH] correct " and ' --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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