Thanks for that. Never liked the line as written. 

> On Mar 18, 2014, at 9:12 AM, "Philip K. Warren" <notifications@github.com> wrote:
> 
> In examples/createevent.py:
> 
> > +   
> > +    print('HTTP Status Code: ' + str(r.status_code))
> > +    
> > +    #
> > +    # Successful creation of an event returns HTTP Status Code of 201
> > +    #
> > +    if r.status_code == 201:
> > +        #
> > +        # HTTP Reponse header 'Location' has the URL for the newly created event
> > +        #
> > +        location = str(r.headers['Location'])
> > +
> > +        #
> > +        # Extract the event ID
> > +        #
> > +        eventID = location.split('/',6)[5]
> Easier way to calculate this:
> 
> eventID = location.rsplit('/', 1)[-1]
> —
> Reply to this email directly or view it on GitHub.