diff --git a/package/CHANGELOG b/package/CHANGELOG index 9ea1ea3ff63..eb802a67c90 100644 --- a/package/CHANGELOG +++ b/package/CHANGELOG @@ -35,6 +35,8 @@ Enhancements * introduce the water bridge analysis module (PR #1722) * Universe.add_TopologyAttr now accepts strings to add a given attribute to the Universe (Issue #1092, PR #1186) + * Fix py3 compatibility regarding the HydrogenBondAnalysis.save_table() + (Issue #1743, PR #1744) Deprecations * HydrogenBondAnalysis detect_hydrogens=heuristic is marked for deprecation in 1.0 diff --git a/package/MDAnalysis/analysis/hbonds/hbond_analysis.py b/package/MDAnalysis/analysis/hbonds/hbond_analysis.py index 253e6ca3d7b..de5c1dfe2f5 100644 --- a/package/MDAnalysis/analysis/hbonds/hbond_analysis.py +++ b/package/MDAnalysis/analysis/hbonds/hbond_analysis.py @@ -1194,7 +1194,7 @@ def save_table(self, filename="hbond_table.pickle"): """ if self.table is None: self.generate_table() - with open(filename, 'w') as f: + with open(filename, 'wb') as f: cPickle.dump(self.table, f, protocol=cPickle.HIGHEST_PROTOCOL) def _has_timeseries(self):