Mercurial > kallithea
diff rhodecode/lib/diffs.py @ 2552:e8650fbc4d4e beta
Moved BytesIO into compat because of py25 compatibility issue
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 06 Jul 2012 00:01:09 +0200 |
parents | 8eab81115660 |
children | d097d4bb0437 |
line wrap: on
line diff
--- a/rhodecode/lib/diffs.py Thu Jul 05 23:58:08 2012 +0200 +++ b/rhodecode/lib/diffs.py Fri Jul 06 00:01:09 2012 +0200 @@ -26,7 +26,6 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. import re -import io import difflib import markupsafe @@ -39,6 +38,7 @@ from pylons.i18n.translation import _ +from rhodecode.lib.compat import BytesIO from rhodecode.lib.vcs.exceptions import VCSError from rhodecode.lib.vcs.nodes import FileNode, SubModuleNode from rhodecode.lib.helpers import escape @@ -603,7 +603,7 @@ unbundle = other_repo.getbundle('incoming', common=common, heads=rheads) - buf = io.BytesIO() + buf = BytesIO() while True: chunk = unbundle._stream.read(1024 * 4) if not chunk: