mirror of https://github.com/jtesta/ssh-audit.git
Fix type after argument removal.
This commit is contained in:
parent
cbe7ad4ac3
commit
cdfe06e75d
|
@ -1812,7 +1812,7 @@ class Utils(object):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def is_ascii(cls, v):
|
def is_ascii(cls, v):
|
||||||
# type: (Union[text_type, str], str) -> bool
|
# type: (Union[text_type, str]) -> bool
|
||||||
try:
|
try:
|
||||||
if isinstance(v, (text_type, str)):
|
if isinstance(v, (text_type, str)):
|
||||||
v.encode('ascii')
|
v.encode('ascii')
|
||||||
|
|
Loading…
Reference in New Issue