summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Geier <Matthias.Geier@gmail.com>2019-09-17 16:26:02 +0200
committerMatthias Geier <Matthias.Geier@gmail.com>2019-09-17 16:26:02 +0200
commita9ccef19d750d2d3a78cf1c8a1108523e4b2a9fa (patch)
treee90fd841ffbd4e59353589e3597cab4675df821c
parentdfa3af170cde6f9219f4a20d4b15583fe2b2f037 (diff)
Change double quotes to single quotes
-rw-r--r--setup.py4
-rw-r--r--sounddevice.py4
-rw-r--r--sounddevice_build.py4
3 files changed, 6 insertions, 6 deletions
diff --git a/setup.py b/setup.py
index 1bc9d52..766cc87 100644
--- a/setup.py
+++ b/setup.py
@@ -72,10 +72,10 @@ setup(
package_data=package_data,
zip_safe=zip_safe,
python_requires='>=2.6',
- setup_requires=["CFFI>=1.0"],
+ setup_requires=['CFFI>=1.0'],
install_requires=['CFFI>=1.0'],
extras_require={'NumPy': ['NumPy']},
- cffi_modules=["sounddevice_build.py:ffibuilder"],
+ cffi_modules=['sounddevice_build.py:ffibuilder'],
author='Matthias Geier',
author_email='Matthias.Geier@gmail.com',
description='Play and Record Sound with Python',
diff --git a/sounddevice.py b/sounddevice.py
index c7c1d62..adee5e0 100644
--- a/sounddevice.py
+++ b/sounddevice.py
@@ -2060,7 +2060,7 @@ class PortAudioError(Exception):
def __str__(self):
errormsg = self.args[0] if self.args else ''
if len(self.args) > 1:
- errormsg = "{0} [PaErrorCode {1}]".format(errormsg, self.args[1])
+ errormsg = '{0} [PaErrorCode {1}]'.format(errormsg, self.args[1])
if len(self.args) > 2:
host_api, hosterror_code, hosterror_text = self.args[2]
hostname = query_hostapis(host_api)['name']
@@ -2556,7 +2556,7 @@ def _check(err, msg=''):
errormsg = _ffi.string(_lib.Pa_GetErrorText(err)).decode()
if msg:
- errormsg = "{0}: {1}".format(msg, errormsg)
+ errormsg = '{0}: {1}'.format(msg, errormsg)
if err == _lib.paUnanticipatedHostError:
# (gh82) We grab the host error info here rather than inside
diff --git a/sounddevice_build.py b/sounddevice_build.py
index fed4e9c..c16e092 100644
--- a/sounddevice_build.py
+++ b/sounddevice_build.py
@@ -1,7 +1,7 @@
from cffi import FFI
ffibuilder = FFI()
-ffibuilder.set_source("_sounddevice", None)
+ffibuilder.set_source('_sounddevice', None)
ffibuilder.cdef("""
int Pa_GetVersion( void );
const char* Pa_GetVersionText( void );
@@ -317,5 +317,5 @@ ffibuilder.cdef("""
FILE* __stderrp; /* macOS */
""")
-if __name__ == "__main__":
+if __name__ == '__main__':
ffibuilder.compile(verbose=True)