Skip to content

Commit

Permalink
Merge pull request googleapis#123 from mbanders/add_str
Browse files Browse the repository at this point in the history
Add __str__ method to cal
  • Loading branch information
Narcolapser authored Sep 17, 2018
2 parents e576776 + cf188aa commit 586361c
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 586361c

Please sign in to comment.