Skip to content

Commit a9ccef1

Browse files
committed
Change double quotes to single quotes
1 parent dfa3af1 commit a9ccef1

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ def get_tag(self):
7272
package_data=package_data,
7373
zip_safe=zip_safe,
7474
python_requires='>=2.6',
75-
setup_requires=["CFFI>=1.0"],
75+
setup_requires=['CFFI>=1.0'],
7676
install_requires=['CFFI>=1.0'],
7777
extras_require={'NumPy': ['NumPy']},
78-
cffi_modules=["sounddevice_build.py:ffibuilder"],
78+
cffi_modules=['sounddevice_build.py:ffibuilder'],
7979
author='Matthias Geier',
8080
author_email='Matthias.Geier@gmail.com',
8181
description='Play and Record Sound with Python',

sounddevice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2060,7 +2060,7 @@ class PortAudioError(Exception):
20602060
def __str__(self):
20612061
errormsg = self.args[0] if self.args else ''
20622062
if len(self.args) > 1:
2063-
errormsg = "{0} [PaErrorCode {1}]".format(errormsg, self.args[1])
2063+
errormsg = '{0} [PaErrorCode {1}]'.format(errormsg, self.args[1])
20642064
if len(self.args) > 2:
20652065
host_api, hosterror_code, hosterror_text = self.args[2]
20662066
hostname = query_hostapis(host_api)['name']
@@ -2556,7 +2556,7 @@ def _check(err, msg=''):
25562556

25572557
errormsg = _ffi.string(_lib.Pa_GetErrorText(err)).decode()
25582558
if msg:
2559-
errormsg = "{0}: {1}".format(msg, errormsg)
2559+
errormsg = '{0}: {1}'.format(msg, errormsg)
25602560

25612561
if err == _lib.paUnanticipatedHostError:
25622562
# (gh82) We grab the host error info here rather than inside

sounddevice_build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from cffi import FFI
22

33
ffibuilder = FFI()
4-
ffibuilder.set_source("_sounddevice", None)
4+
ffibuilder.set_source('_sounddevice', None)
55
ffibuilder.cdef("""
66
int Pa_GetVersion( void );
77
const char* Pa_GetVersionText( void );
@@ -317,5 +317,5 @@
317317
FILE* __stderrp; /* macOS */
318318
""")
319319

320-
if __name__ == "__main__":
320+
if __name__ == '__main__':
321321
ffibuilder.compile(verbose=True)

0 commit comments

Comments
 (0)