~ubuntu-branches/ubuntu/intrepid/moin/intrepid-updates

« back to all changes in this revision

Viewing changes to MoinMoin/wikidicts.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-02-14 16:09:24 UTC
  • mfrom: (0.2.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20060214160924-fyrx3gvknzqvt4vj
Tags: 1.5.2-1ubuntu1
Drop python2.3 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
    @copyright: 2003 by Gustavo Niemeyer, http://moin.conectiva.com.br/GustavoNiemeyer
7
7
    @license: GNU GPL, see COPYING for details.
8
8
"""
9
 
import re, time, os, copy
 
9
import re, time, os
 
10
 
 
11
#import copy #broken, see comments at top of this file:
 
12
from MoinMoin.support import copy
10
13
 
11
14
# cPickle can encode normal and Unicode strings
12
15
# see http://docs.python.org/lib/node66.html
336
339
 
337
340
            # remove old entries when dict or group page have been deleted,
338
341
            # add entries when pages have been added
339
 
            olddictdict = self.dictdict
340
 
            oldgroupdict = self.groupdict
 
342
            # use copies because the dicts are shared via cfg.DICTS_DATA
 
343
            #  and must not be modified
 
344
            olddictdict = self.dictdict.copy()
 
345
            oldgroupdict = self.groupdict.copy()
341
346
            self.dictdict = {}
342
347
            self.groupdict = {}
343
348