mirror of
https://github.com/l1ving/youtube-dl
synced 2026-06-05 20:33:36 +08:00
test/helper.py: do not assign a lambda expression, use a def
This commit is contained in:
+1
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user