2fe22f1640b1ec54a6467570c38c4e04996b292b
[gentoo.git] /
1 --- twisted/plugin.py
2 +++ twisted/plugin.py
3 @@ -174,7 +174,7 @@
4              if pluginKey not in existingKeys:
5                  del dropinDotCache[pluginKey]
6                  needsWrite = True
7 -        if needsWrite:
8 +        if needsWrite and os.environ.get("TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE") is None:
9              try:
10                  dropinPath.setContent(pickle.dumps(dropinDotCache))
11              except: