Skip to content

Commit

Permalink
FeedGenerator example fix. Closes #52
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemDemidovAramMeem authored and aleksihakli committed Apr 16, 2023
1 parent d4a8306 commit 3b129d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_ical/feedgenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
>>> feed.add_item(
... title="Hello",
... link="http://www.example.com/test/",
... description="Testing."
... description="Testing.",
... start_datetime=datetime(2012, 5, 6, 10, 00),
... end_datetime=datetime(2012, 5, 6, 12, 00),
... )
>>> fp = open('test.ical', 'w')
>>> fp = open('test.ical', 'wb')
>>> feed.write(fp, 'utf-8')
>>> fp.close()
Expand Down

0 comments on commit 3b129d2

Please sign in to comment.