From a9ccef19d750d2d3a78cf1c8a1108523e4b2a9fa Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Tue, 17 Sep 2019 16:26:02 +0200 Subject: Change double quotes to single quotes --- setup.py | 4 ++-- sounddevice.py | 4 ++-- sounddevice_build.py | 4 ++-- 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) -- cgit v1.2.3