summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/gnuradio/gru/os_read_exactly.py
diff options
context:
space:
mode:
authorClayton Smith <argilo@gmail.com>2020-10-06 22:31:13 -0400
committermormj <34754695+mormj@users.noreply.github.com>2020-10-20 06:17:14 -0400
commit0f84fcef36bc52e62a385ed0288d630ec2d3ec77 (patch)
tree26329e28a86ca02f30389f068dcc596bf260dcfb /gnuradio-runtime/python/gnuradio/gru/os_read_exactly.py
parenta1bd12700039ee83bec5fea5ee4f78f01f3562b2 (diff)
gru: remove unused files
Diffstat (limited to 'gnuradio-runtime/python/gnuradio/gru/os_read_exactly.py')
-rw-r--r--gnuradio-runtime/python/gnuradio/gru/os_read_exactly.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/gnuradio-runtime/python/gnuradio/gru/os_read_exactly.py b/gnuradio-runtime/python/gnuradio/gru/os_read_exactly.py
deleted file mode 100644
index da04483388..0000000000
--- a/gnuradio-runtime/python/gnuradio/gru/os_read_exactly.py
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# Copyright 2005 Free Software Foundation, Inc.
-#
-# This file is part of GNU Radio
-#
-# SPDX-License-Identifier: GPL-3.0-or-later
-#
-#
-
-import os
-
-def os_read_exactly(file_descriptor, nbytes):
- """
- Replacement for os.read that blocks until it reads exactly nbytes.
-
- """
- s = ''
- while nbytes > 0:
- sbuf = os.read(file_descriptor, nbytes)
- if not(sbuf):
- return ''
- nbytes -= len(sbuf)
- s = s + sbuf
- return s