diff options
| author | morefigs <morefigs@gmail.com> | 2019-04-13 16:32:07 +1000 |
|---|---|---|
| committer | morefigs <morefigs@gmail.com> | 2019-04-13 16:32:07 +1000 |
| commit | a768500ccd472cbb18262bf4de6a7e533e57b4b6 (patch) | |
| tree | db08eeec9647788dfd3078f7586763089472308f /examples/camera/display_frame.py | |
| parent | 3d00598641e5b1ee570390148e15d8a8c7e19183 (diff) | |
| download | pymba-a768500ccd472cbb18262bf4de6a7e533e57b4b6.tar.gz pymba-a768500ccd472cbb18262bf4de6a7e533e57b4b6.zip | |
Replace f-strings with format for backwards compatibility
Diffstat (limited to 'examples/camera/display_frame.py')
| -rw-r--r-- | examples/camera/display_frame.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/camera/display_frame.py b/examples/camera/display_frame.py index 6dc3f84..c5b7dbe 100644 --- a/examples/camera/display_frame.py +++ b/examples/camera/display_frame.py @@ -15,7 +15,7 @@ def display_frame(frame: Frame, delay: Optional[int] = 1) -> None: :param frame: The frame object to display. :param delay: Display delay in milliseconds, use 0 for indefinite. """ - print(f'frame {frame.data.frameID}') + print('frame {}'.format(frame.data.frameID)) # get a copy of the frame data image = frame.buffer_data_numpy() |
