some ruff format
This commit is contained in:
parent
8f41f41455
commit
0b269d74d0
2 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
||||||
import inputs as _inputs
|
import inputs as _inputs
|
||||||
import threading as _threading
|
import threading as _threading
|
||||||
|
|
||||||
|
|
||||||
class gamepad:
|
class gamepad:
|
||||||
def __init__(self, pygame):
|
def __init__(self, pygame):
|
||||||
self._lasty = ""
|
self._lasty = ""
|
||||||
|
|
|
@ -36,9 +36,7 @@ def save(surf, dest):
|
||||||
|
|
||||||
def toBytes(surf):
|
def toBytes(surf):
|
||||||
return bz2.compress(
|
return bz2.compress(
|
||||||
pickle.dumps(
|
pickle.dumps([pygame.image.tostring(surf._grp(), "RGBA"), list(surf.size)])
|
||||||
[pygame.image.tostring(surf._grp(), "RGBA"), list(surf.size)]
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue