summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Plugin.py')
-rw-r--r--src/lib/Server/Plugin.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py
index 4bfa3fdf5..86f843aca 100644
--- a/src/lib/Server/Plugin.py
+++ b/src/lib/Server/Plugin.py
@@ -283,7 +283,7 @@ class ThreadedStatistics(Statistics,
def process_statistics(self, metadata, data):
warned = False
try:
- self.work_queue.put_nowait((metadata, copy.deepcopy(data)))
+ self.work_queue.put_nowait((metadata, copy.copy(data)))
warned = False
except Full:
if not warned:
@@ -646,7 +646,7 @@ class StructFile(XMLFileBacked):
rv.extend(self._match(child, metadata))
return rv
else:
- rv = copy.deepcopy(item)
+ rv = copy.copy(item)
for child in rv.iterchildren():
rv.remove(child)
for child in item.iterchildren():
@@ -859,7 +859,7 @@ class PrioDir(Plugin, Generator, XMLDirectoryBacked):
if '__text__' in data:
entry.text = data['__text__']
if '__children__' in data:
- [entry.append(copy.deepcopy(item)) for item in data['__children__']]
+ [entry.append(copy.copy(item)) for item in data['__children__']]
return dict([(key, data[key])
for key in list(data.keys())
@@ -867,7 +867,6 @@ class PrioDir(Plugin, Generator, XMLDirectoryBacked):
# new unified EntrySet backend
-
class SpecificityError(Exception):
"""Thrown in case of filename parse failure."""
pass