Compare commits

..

No commits in common. "4fe61ebfbc99e4eca9c2a5949d82b73545d42ca5" and "09bd724058ddeb7d0872e7c03f6fe3f60220c076" have entirely different histories.

1 changed files with 5 additions and 4 deletions

View File

@ -11,10 +11,10 @@ from urllib.error import HTTPError
from time import time
authors = (
'Sasha "Almtesh" Évan MOREL',
'Gilles "Almtesh" Émilien MOREL',
)
name = 'homesfr pour Python 3'
version = '1.5'
version = '1.4'
# Modes utilisables
MODE_OFF = 0
@ -272,7 +272,6 @@ class HomeSFR ():
print ('initalisé avec l\'identifiant ' + username)
if cookies is not None:
print ('initialisé avec des cookies')
print ('Cookies ' + str (len (cookies)))
print ('debug = ' + str (debug))
print ('autologin = ' + str (autologin))
@ -286,8 +285,10 @@ class HomeSFR ():
self.autologin = False
if cookies is None:
self.cookies = CookieJar ()
else:
elif type (cookies) == CookieJar:
self.cookies = cookies
else:
raise TypeError ('Les cookies doivent être de type CookieJar !')
self.opener = request.build_opener (request.HTTPCookieProcessor (self.cookies))
self.mysensors = self.MySensors (self)