File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -328,18 +328,20 @@ def lazy_import(name):
328328try :
329329 if numpy_missing :
330330 # Always fails here. Need the error message for MissingModule.reason
331- import numpy
331+ import numpy # pylint: disable=ungrouped-imports
332332 # Check that module dependencies are not missing, or get error message
333- import pygame .pixelcopy
333+ import pygame .pixelcopy # pylint: disable=ungrouped-imports
334334except (ImportError , OSError ):
335335 surfarray = MissingModule ("surfarray" , urgent = 0 )
336336else :
337337 surfarray = lazy_import ("surfarray" )
338338
339339try :
340340 if numpy_missing :
341- import numpy
342- import pygame .mixer
341+ # Always fails here. Need the error message for MissingModule.reason
342+ import numpy # pylint: disable=ungrouped-imports
343+ # Check that module dependencies are not missing, or get error message
344+ import pygame .mixer # pylint: disable=ungrouped-imports
343345except (ImportError , OSError ):
344346 sndarray = MissingModule ("sndarray" , urgent = 0 )
345347else :
You can’t perform that action at this time.
0 commit comments