summaryrefslogtreecommitdiff
path: root/Mailman/queue/archive.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-09-19 07:28:58 -0400
committerBarry Warsaw2007-09-19 07:28:58 -0400
commit4c517789fa8b29d2a23791e6f390d9f1173c3125 (patch)
tree9b5c1ed27416cbec12665a1cea5206336d72c039 /Mailman/queue/archive.py
parent39c87b16da60a5274bfc7494d0a121b3162b56fb (diff)
downloadmailman-4c517789fa8b29d2a23791e6f390d9f1173c3125.tar.gz
mailman-4c517789fa8b29d2a23791e6f390d9f1173c3125.tar.zst
mailman-4c517789fa8b29d2a23791e6f390d9f1173c3125.zip
Implement a context manager for Python 2.5's with statement, which is
used where we used to do a try/except to temporarily change the global translation language. This makes the code shorter and cleaner. E.g. with i18n.using_language(another_language): # do something
Diffstat (limited to 'Mailman/queue/archive.py')
0 files changed, 0 insertions, 0 deletions