We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2454f8 commit f450e77Copy full SHA for f450e77
1 file changed
OV5640_Breakout/CircuitPython_Kaluga-jpeg/code.py
@@ -20,7 +20,6 @@
20
"""
21
22
import os
23
-import ssl
24
import struct
25
26
import board
@@ -30,7 +29,6 @@
30
29
import espidf
31
import keypad
32
import sdcardio
33
-import socketpool
34
import storage
35
36
print("Initializing display")
@@ -118,7 +116,7 @@ def open_next_image(extension="jpg"):
118
116
if exists(filename):
119
117
continue
120
print("#", filename)
121
- return open(filename, "wb") # pylint: disable=consider-using-with
+ return open(filename, "wb")
122
123
ow = (display.width - cam.width) // 2
124
oh = (display.height - cam.height) // 2
@@ -146,4 +144,3 @@ def open_next_image(extension="jpg"):
146
144
pixel_format=espcamera.PixelFormat.RGB565,
147
145
frame_size=espcamera.FrameSize.QVGA,
148
)
149
-
0 commit comments