[147975] trunk/dports/python/py-ipython/files/patch-IPython_utils_terminal. py.diff
stromnov at macports.org
stromnov at macports.org
Fri Apr 22 01:39:04 PDT 2016
Revision: 147975
https://trac.macports.org/changeset/147975
Author: stromnov at macports.org
Date: 2016-04-22 01:39:04 -0700 (Fri, 22 Apr 2016)
Log Message:
-----------
py-ipython: patch file for #51202
Added Paths:
-----------
trunk/dports/python/py-ipython/files/patch-IPython_utils_terminal.py.diff
Added: trunk/dports/python/py-ipython/files/patch-IPython_utils_terminal.py.diff
===================================================================
--- trunk/dports/python/py-ipython/files/patch-IPython_utils_terminal.py.diff (rev 0)
+++ trunk/dports/python/py-ipython/files/patch-IPython_utils_terminal.py.diff 2016-04-22 08:39:04 UTC (rev 147975)
@@ -0,0 +1,21 @@
+--- IPython/utils/terminal.py.orig 2016-04-22 11:18:57.000000000 +0300
++++ IPython/utils/terminal.py 2016-04-22 11:23:21.000000000 +0300
+@@ -24,7 +24,11 @@
+ import struct
+ import sys
+ import warnings
+-import backports.shutil_get_terminal_size
++
++if sys.version_info >= (3, 3):
++ from shutil import get_terminal_size as _get_terminal_size
++else:
++ from backports.shutil_get_terminal_size import get_terminal_size as _get_terminal_size
+
+ from . import py3compat
+
+@@ -122,4 +126,4 @@
+
+
+ def get_terminal_size(defaultx=80, defaulty=25):
+- return backports.shutil_get_terminal_size.get_terminal_size((defaultx, defaulty))
++ return _get_terminal_size((defaultx, defaulty))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160422/805279c7/attachment.html>
More information about the macports-changes
mailing list