Skip to content

Commit 74e17ff

Browse files
Toben ArcherToben Archer
authored andcommitted
Removed unneeded import from veh.py
I also updated it a little bit. Don't know if it works at all or not, but at hopefully it won't cause problems else where.
1 parent 4ad428d commit 74e17ff

File tree

1 file changed

+8
-9
lines changed
  • examples/VehicleBookings

1 file changed

+8
-9
lines changed

examples/VehicleBookings/veh.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from O365 import *
2-
from printing import *
32
import json
43

54

@@ -15,25 +14,25 @@
1514
e = veh['email']
1615
p = veh['password']
1716

18-
schedule = Schedule(e,p)
17+
schedule = Schedule((e,p))
1918
try:
2019
result = schedule.getCalendars()
21-
print 'Fetched calendars for',e,'was successful:',result
20+
print('Fetched calendars for',e,'was successful:',result)
2221
except:
23-
print 'Login failed for',e
22+
print('Login failed for',e)
2423

2524
bookings = []
2625

2726
for cal in schedule.calendars:
28-
print 'attempting to fetch events for',e
27+
print('attempting to fetch events for',e)
2928
try:
3029
result = cal.getEvents()
31-
print 'Got events',result,'got',len(cal.events)
30+
print('Got events',result,'got',len(cal.events))
3231
except:
33-
print 'failed to fetch events'
34-
print 'attempting for event information'
32+
print('failed to fetch events')
33+
print('attempting for event information')
3534
for event in cal.events:
36-
print 'HERE!'
35+
print('HERE!')
3736
bookings.append(event.fullcalendarioJson())
3837
json_outs[e] = bookings
3938

0 commit comments

Comments
 (0)