Skip to content

Commit

Permalink
Use built in function to get terminal size
Browse files Browse the repository at this point in the history
  • Loading branch information
MinchinWeb committed Oct 29, 2016
1 parent 7688b47 commit 0354006
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 85 deletions.
4 changes: 2 additions & 2 deletions green/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@

from collections import OrderedDict
from math import ceil
from shutil import get_terminal_size
import time
import traceback
from unittest.result import failfast

from green.output import Colors, debug
from green.terminal import getTerminalSize
from green.version import pretty_version


terminal_width, _ignored = getTerminalSize()
terminal_width, _ignored = get_terminal_size()



Expand Down
83 changes: 0 additions & 83 deletions green/terminal.py

This file was deleted.

4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
package_data = {'green' : ['VERSION', 'shell_completion.sh']},
version = version,
install_requires = dependencies,
extras_require = {
':sys_platform=="win32"': ['colorama>=0.2.5'],
':python_version=="2.7"': ['backports.shutil_get_terminal_size>=1.0.0'],
},
entry_points = {
'console_scripts' : [
'green = green:main',
Expand Down

0 comments on commit 0354006

Please sign in to comment.