Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
94c11692
Commit
94c11692
authored
Nov 19, 2015
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the import for Python 2
parent
3e6b7b64
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
topydo/lib/Utils.py
topydo/lib/Utils.py
+1
-4
No files found.
topydo/lib/Utils.py
View file @
94c11692
...
@@ -59,10 +59,7 @@ def get_terminal_size():
...
@@ -59,10 +59,7 @@ def get_terminal_size():
Try to determine terminal size at run time. If that is not possible,
Try to determine terminal size at run time. If that is not possible,
returns the default size of 80x24.
returns the default size of 80x24.
"""
"""
try
:
from
shutil
import
get_terminal_size
# pylint: disable=no-name-in-module
from
shutil
import
get_terminal_size
# pylint: disable=no-name-in-module
except
ImportError
:
from
backports.shutil_get_terminal_size
import
get_terminal_size
try
:
try
:
sz
=
get_terminal_size
()
sz
=
get_terminal_size
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment