Skip to content

Commit

Permalink
Add __str__ method to cal
Browse files Browse the repository at this point in the history
  • Loading branch information
mbanders committed Sep 17, 2018
1 parent 537427a commit cf188aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions O365/cal.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ def __init__(self, json=None, auth=None, verify=True):

self.verify = verify

def __str__(self):
'''Return informal, nicely printable string.'''
return self.getName()

def getName(self):
'''Get the calendar's Name.'''
return self.json['Name']
Expand Down

0 comments on commit cf188aa

Please sign in to comment.