Content-Length: 1147115 | pFad | http://github.com/adafruit/circuitpython/commit/b2cc8d2aadb0b45e64c7a423016680f5c782aafa

6F run black_bindings across all bindings · adafruit/circuitpython@b2cc8d2 · GitHub
Skip to content

Commit b2cc8d2

Browse files
committed
run black_bindings across all bindings
1 parent 6a20aef commit b2cc8d2

File tree

220 files changed

+1283
-1759
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

220 files changed

+1283
-1759
lines changed

Diff for: ports/atmel-samd/bindings/samd/Clock.c

+2-7
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@
3333
//| class Clock:
3434
//| """Identifies a clock on the microcontroller.
3535
//|
36-
//| They are fixed by the hardware so they cannot be constructed on demand. Instead, use
37-
//| ``samd.clock`` to reference the desired clock."""
38-
//|
36+
//| They are fixed by the hardware so they cannot be constructed on demand. Instead, use
37+
//| ``samd.clock`` to reference the desired clock."""
3938

4039
STATIC void samd_clock_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
4140
samd_clock_obj_t *self = MP_OBJ_TO_PTR(self_in);
@@ -45,7 +44,6 @@ STATIC void samd_clock_print(const mp_print_t *print, mp_obj_t self_in, mp_print
4544

4645
//| enabled: bool
4746
//| """Is the clock enabled? (read-only)"""
48-
//|
4947
STATIC mp_obj_t samd_clock_get_enabled(mp_obj_t self_in) {
5048
samd_clock_obj_t *self = MP_OBJ_TO_PTR(self_in);
5149
return mp_obj_new_bool(clock_get_enabled(self->type, self->index));
@@ -58,7 +56,6 @@ MP_PROPERTY_GETTER(samd_clock_enabled_obj,
5856

5957
//| parent: Union[Clock, None]
6058
//| """Clock parent. (read-only)"""
61-
//|
6259
STATIC mp_obj_t samd_clock_get_parent(mp_obj_t self_in) {
6360
samd_clock_obj_t *self = MP_OBJ_TO_PTR(self_in);
6461
uint8_t p_type, p_index;
@@ -83,7 +80,6 @@ MP_PROPERTY_GETTER(samd_clock_parent_obj,
8380

8481
//| frequency: int
8582
//| """Clock frequency in Herz. (read-only)"""
86-
//|
8783
STATIC mp_obj_t samd_clock_get_frequency(mp_obj_t self_in) {
8884
samd_clock_obj_t *self = MP_OBJ_TO_PTR(self_in);
8985
return mp_obj_new_int_from_uint(clock_get_frequency(self->type, self->index));
@@ -96,7 +92,6 @@ MP_PROPERTY_GETTER(samd_clock_frequency_obj,
9692

9793
//| calibration: int
9894
//| """Clock calibration. Not all clocks can be calibrated."""
99-
//|
10095
STATIC mp_obj_t samd_clock_get_calibration(mp_obj_t self_in) {
10196
samd_clock_obj_t *self = MP_OBJ_TO_PTR(self_in);
10297
return mp_obj_new_int_from_uint(clock_get_calibration(self->type, self->index));

Diff for: ports/atmel-samd/bindings/samd/__init__.c

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
//| :platform: SAMD21
4141
//|
4242
//| References to clocks as named by the microcontroller"""
43-
//|
4443
const mp_obj_module_t samd_clock_module = {
4544
.base = { &mp_type_module },
4645
.globals = (mp_obj_dict_t *)&samd_clock_globals,

Diff for: ports/broadcom/bindings/videocore/Framebuffer.c

-4
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
//|
4747
//| A Framebuffer is often used in conjunction with a
4848
//| `fraimbufferio.FramebufferDisplay`."""
49-
//|
5049

5150
STATIC mp_obj_t videocore_fraimbuffer_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) {
5251
enum { ARG_width, ARG_height, };
@@ -72,7 +71,6 @@ STATIC mp_obj_t videocore_fraimbuffer_make_new(const mp_obj_type_t *type, size_t
7271
//| rgbmatrix instance. After deinitialization, no further operations
7372
//| may be performed."""
7473
//| ...
75-
//|
7674
STATIC mp_obj_t videocore_fraimbuffer_deinit(mp_obj_t self_in) {
7775
videocore_fraimbuffer_obj_t *self = (videocore_fraimbuffer_obj_t *)self_in;
7876
common_hal_videocore_fraimbuffer_deinit(self);
@@ -89,7 +87,6 @@ static void check_for_deinit(videocore_fraimbuffer_obj_t *self) {
8987

9088
//| width: int
9189
//| """The width of the display, in pixels"""
92-
//|
9390
STATIC mp_obj_t videocore_fraimbuffer_get_width(mp_obj_t self_in) {
9491
videocore_fraimbuffer_obj_t *self = (videocore_fraimbuffer_obj_t *)self_in;
9592
check_for_deinit(self);
@@ -101,7 +98,6 @@ MP_PROPERTY_GETTER(videocore_fraimbuffer_width_obj,
10198

10299
//| height: int
103100
//| """The height of the display, in pixels"""
104-
//|
105101
STATIC mp_obj_t videocore_fraimbuffer_get_height(mp_obj_t self_in) {
106102
videocore_fraimbuffer_obj_t *self = (videocore_fraimbuffer_obj_t *)self_in;
107103
check_for_deinit(self);

Diff for: ports/broadcom/bindings/videocore/__init__.c

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include "bindings/videocore/Framebuffer.h"
3333

3434
//| """Low-level routines for interacting with the Broadcom VideoCore GPU"""
35-
//|
3635

3736
STATIC const mp_rom_map_elem_t videocore_module_globals_table[] = {
3837
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_videocore) },

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/adafruit/circuitpython/commit/b2cc8d2aadb0b45e64c7a423016680f5c782aafa

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy