400-modules.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. diff -Naur mailman-2.1.18-1/Mailman/MailList.py mailman-2.1.18-1_patched/Mailman/MailList.py
  2. --- mailman-2.1.18-1/Mailman/MailList.py 2014-05-06 20:43:56.000000000 +0400
  3. +++ mailman-2.1.18-1_patched/Mailman/MailList.py 2014-11-04 15:57:06.832636147 +0300
  4. @@ -30,7 +30,7 @@
  5. import shutil
  6. import socket
  7. import urllib
  8. -import cPickle
  9. +import pickle as cPickle
  10. from cStringIO import StringIO
  11. from UserDict import UserDict
  12. diff -Naur mailman-2.1.18-1/misc/paths.py.in mailman-2.1.18-1_patched/misc/paths.py.in
  13. --- mailman-2.1.18-1/misc/paths.py.in 2014-05-06 20:43:56.000000000 +0400
  14. +++ mailman-2.1.18-1_patched/misc/paths.py.in 2014-11-04 15:55:49.594941540 +0300
  15. @@ -66,14 +66,14 @@
  16. # In a normal interactive Python environment, the japanese.pth and korean.pth
  17. # files would be imported automatically. But because we inhibit the importing
  18. # of the site module, we need to be explicit about importing these codecs.
  19. -if not jaok:
  20. - import japanese
  21. +#if not jaok:
  22. +# import japanese
  23. # As of KoreanCodecs 2.0.5, you had to do the second import to get the Korean
  24. # codecs installed, however leave the first import in there in case an upgrade
  25. # changes this.
  26. -if not kook:
  27. - import korean
  28. - import korean.aliases
  29. +#if not kook:
  30. +# import korean
  31. +# import korean.aliases
  32. # Arabic and Hebrew (RFC-1556) encoding aliases. (temporary solution)
  33. import encodings.aliases
  34. encodings.aliases.aliases.update({