File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
import os
4
4
import pathlib
5
5
import re
6
- import requests
7
6
import shutil
8
7
import sys
9
8
import traceback
@@ -281,7 +280,8 @@ def download(fileName, source):
281
280
r = requests.get(url, allow_redirects=True)
282
281
with open('google.ico', 'wb') as f:
283
282
f.write(r.content)
284
- """ , DeprecationWarning , stacklevel = 2 )
283
+ """ , DeprecationWarning , stacklevel = 2 )
284
+ import requests
285
285
try :
286
286
r = requests .get (source )
287
287
except requests .exceptions .ConnectionError as e :
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ def runMethod():
188
188
if getattr (self ._function , "isTestFunction" , False ):
189
189
self ._function (test )()
190
190
elif (len (inspect .getfullargspec (self ._function ).args ) >
191
- 1 if inspect .ismethod (self ._function ) else 0 ):
191
+ ( 1 if inspect .ismethod (self ._function ) else 0 ) ):
192
192
self ._function (test )
193
193
else :
194
194
self ._function ()
You can’t perform that action at this time.
0 commit comments