mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-14 13:37:45 +08:00
test/helper.py: do not assign a lambda expression, use a def
This commit is contained in:
parent
32616c14cc
commit
abe03863d5
@ -94,7 +94,7 @@ def gettestcases(include_onlymatching=False):
|
||||
yield tc
|
||||
|
||||
|
||||
md5 = lambda s: hashlib.md5(s.encode('utf-8')).hexdigest()
|
||||
def md5(s): return: hashlib.md5(s.encode('utf-8')).hexdigest()
|
||||
|
||||
|
||||
def expect_value(self, got, expected, field):
|
||||
|
Loading…
x
Reference in New Issue
Block a user