-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from frostming/feature/drop-py2
- Loading branch information
Showing
8 changed files
with
372 additions
and
464 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
install: | ||
pip install --upgrade pdm wheel | ||
pdm sync -g . -d | ||
pdm sync -gp . | ||
|
||
docs: | ||
pdm || $(MAKE) install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
:license: GNU GPLv2 | ||
:author: Frost Ming<[email protected]> | ||
""" | ||
__version__ = "1.4.0" | ||
__version__ = "1.5.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,7 @@ | |
:license: GNU GPLv2 | ||
:author: Frost Ming<[email protected]> | ||
""" | ||
try: | ||
from shutil import get_terminal_size | ||
except ImportError: | ||
from backports.shutil_get_terminal_size import get_terminal_size | ||
from shutil import get_terminal_size | ||
|
||
SIZE = tuple(get_terminal_size((80, 24))) | ||
CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789|!?.+-_=@#$%&()/:;,' \"" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,6 @@ | |
:license: GNU GPLv2 | ||
:author: Frost Ming<[email protected]> | ||
""" | ||
from __future__ import unicode_literals | ||
|
||
import argparse | ||
import json | ||
import pkgutil | ||
|
@@ -354,4 +352,3 @@ def say(text, **options): | |
def _strip_color(text): | ||
regex = re.compile(r"\x1b\[\d+?m") | ||
return regex.sub("", text) | ||
|
Oops, something went wrong.