mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
remove termcolor
This commit is contained in:
@@ -1,16 +1,7 @@
|
||||
#coding: utf-8
|
||||
from termcolor import colored
|
||||
|
||||
class MyBaseError(BaseException):
|
||||
def __init__(self, msg):
|
||||
self.msg = msg
|
||||
self.color_msg = colored(msg, 'red', attrs=['bold'])
|
||||
|
||||
def __repr__(self):
|
||||
return self.msg
|
||||
|
||||
def __str__(self):
|
||||
return self.color_msg
|
||||
pass
|
||||
|
||||
class ParamsError(MyBaseError):
|
||||
pass
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
requests
|
||||
termcolor
|
||||
flask
|
||||
PyYAML
|
||||
coveralls
|
||||
|
||||
Reference in New Issue
Block a user