[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ESPResSo-users] About import of cStringIO
From: |
Pierre de Buyl |
Subject: |
[ESPResSo-users] About import of cStringIO |
Date: |
Tue, 30 Jan 2018 21:20:21 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Hi all,
in
src/python/espressomd/MDA_ESP/__init__.py
there is an import to cStringIO that is a Python 2 only feature. The
funcionality of cStringIO.StringIO is provided by io.StringIO in Python 3 but
six http://six.readthedocs.io/#module-six.moves allows to replace it by
from six.moves import cStringIO
and six is apparently an implied dependency anyway as it is required by
MDAnalysis
https://github.com/MDAnalysis/mdanalysis/blob/develop/package/setup.py
If you think that it is useful, I attach a patch that I used on my computer. To
apply the patch, one can use "git apply".
Regards,
Pierre
--
-----------------------------------------------------------
Pierre de Buyl
KU Leuven - Institute for Theoretical Physics
T +32 16 3 27355
W http://pdebuyl.be/
-----------------------------------------------------------
- [ESPResSo-users] About import of cStringIO,
Pierre de Buyl <=