Skip to content

Commit

Permalink
Test cache clear.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Jun 24, 2019
1 parent 58c3717 commit 44e238d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/zope/app/locales/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ class POTEntry(object):
>>> entry.locations
(('zzz', 123),)
The cache is cleared on a new entry:
>>> entry = POTEntry('aaa')
>>> entry.addLocationComment('zzz', 123)
>>> entry.addLocationComment('yyy', 456)
>>> entry.locations
(('yyy', 456), ('zzz', 123))
"""

def __init__(self, msgid, comments=None):
Expand Down

0 comments on commit 44e238d

Please sign in to comment.