Skip to content

Commit be69edb

Browse files
committed
Change double quotes to single quotes
1 parent 259fe8b commit be69edb

File tree

3 files changed

+38
-38
lines changed

3 files changed

+38
-38
lines changed

README.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -99,20 +99,20 @@ First, import the module:
9999

100100
Then, you most likely want to create a new `jack.Client`:
101101

102-
>>> client = jack.Client("MyGreatClient")
102+
>>> client = jack.Client('MyGreatClient')
103103

104104
You probably want to create some audio input and output ports, too:
105105

106-
>>> client.inports.register("input_1")
106+
>>> client.inports.register('input_1')
107107
jack.OwnPort('MyGreatClient:input_1')
108-
>>> client.outports.register("output_1")
108+
>>> client.outports.register('output_1')
109109
jack.OwnPort('MyGreatClient:output_1')
110110

111111
As you can see, these functions return the newly created port.
112112
If you want, you can save it for later:
113113

114-
>>> in2 = client.inports.register("input_2")
115-
>>> out2 = client.outports.register("output_2")
114+
>>> in2 = client.inports.register('input_2')
115+
>>> out2 = client.outports.register('output_2')
116116

117117
To see what you can do with the returned objects, have a look at the
118118
documentation of the class `jack.OwnPort`.
@@ -130,9 +130,9 @@ information about these lists of ports.
130130
If you have selected an appropriate driver in your JACK settings, you can also
131131
create MIDI ports:
132132

133-
>>> client.midi_inports.register("midi_in")
133+
>>> client.midi_inports.register('midi_in')
134134
jack.OwnMidiPort('MyGreatClient:midi_in')
135-
>>> client.midi_outports.register("midi_out")
135+
>>> client.midi_outports.register('midi_out')
136136
jack.OwnMidiPort('MyGreatClient:midi_out')
137137

138138
You can check what other JACK ports are available (your output may be
@@ -163,7 +163,7 @@ You can also be more specific when looking for ports:
163163

164164
You can even use regular expressions to search for ports:
165165

166-
>>> client.get_ports("Great.*2$")
166+
>>> client.get_ports('Great.*2$')
167167
[jack.OwnPort('MyGreatClient:input_2'), jack.OwnPort('MyGreatClient:output_2')]
168168

169169
If you want, you can also set all kinds of callback functions for your client.
@@ -177,27 +177,27 @@ Once you are ready to run, you should activate your client:
177177
As soon as the client is activated, you can make connections (this isn't
178178
possible before activating the client):
179179

180-
>>> client.connect("system:capture_1", "MyGreatClient:input_1")
181-
>>> client.connect("MyGreatClient:output_1", "system:playback_1")
180+
>>> client.connect('system:capture_1', 'MyGreatClient:input_1')
181+
>>> client.connect('MyGreatClient:output_1', 'system:playback_1')
182182

183183
You can also use the port objects from before instead of port names:
184184

185-
>>> client.connect(out2, "system:playback_2")
186-
>>> in2.connect("system:capture_2")
185+
>>> client.connect(out2, 'system:playback_2')
186+
>>> in2.connect('system:capture_2')
187187

188188
Use `jack.Client.get_all_connections()` to find out which other ports are
189189
connected to a given port.
190190
If you own the port, you can also use `jack.OwnPort.connections`.
191191

192-
>>> client.get_all_connections("system:playback_1")
192+
>>> client.get_all_connections('system:playback_1')
193193
[jack.OwnPort('MyGreatClient:output_1')]
194194
>>> out2.connections
195195
[jack.Port('system:playback_2')]
196196

197197
Of course you can also disconnect ports, there are again several possibilities:
198198

199-
>>> client.disconnect("system:capture_1", "MyGreatClient:input_1")
200-
>>> client.disconnect(out2, "system:playback_2")
199+
>>> client.disconnect('system:capture_1', 'MyGreatClient:input_1')
200+
>>> client.disconnect(out2, 'system:playback_2')
201201
>>> in2.disconnect() # disconnect all connections with in2
202202

203203
If you don't need your ports anymore, you can un-register them:

jack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,7 @@ def get_all_connections(self, port):
15441544
_lib.jack_free)
15451545
return self._port_list_from_pointers(names)
15461546

1547-
def get_ports(self, name_pattern="", is_audio=False, is_midi=False,
1547+
def get_ports(self, name_pattern='', is_audio=False, is_midi=False,
15481548
is_input=False, is_output=False, is_physical=False,
15491549
can_monitor=False, is_terminal=False):
15501550
"""Return a list of selected ports.
@@ -1572,7 +1572,7 @@ def get_ports(self, name_pattern="", is_audio=False, is_midi=False,
15721572
elif is_midi and not is_audio:
15731573
type_pattern = _MIDI
15741574
else:
1575-
type_pattern = b""
1575+
type_pattern = b''
15761576
flags = 0x0
15771577
if is_input:
15781578
flags |= _lib.JackPortIsInput

setup.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,35 +16,35 @@ def run_tests(self):
1616
errno = pytest.main(self.test_args)
1717
sys.exit(errno)
1818

19-
__version__ = "unknown"
19+
__version__ = 'unknown'
2020

2121
# "import" __version__
22-
for line in open("jack.py"):
23-
if line.startswith("__version__"):
22+
for line in open('jack.py'):
23+
if line.startswith('__version__'):
2424
exec(line)
2525
break
2626

2727
setup(
28-
name="JACK-Client",
28+
name='JACK-Client',
2929
version=__version__,
30-
py_modules=["jack"],
31-
install_requires=["CFFI"],
32-
extras_require={"NumPy": ["NumPy"]},
33-
author="Matthias Geier",
34-
author_email="[email protected]",
35-
description="JACK Audio Connection Kit (JACK) Client for Python",
36-
long_description=open("README.rst").read(),
37-
license="MIT",
38-
keywords="JACK audio low-latency multi-channel".split(),
39-
url="http://jackclient-python.rtfd.org/",
40-
platforms="any",
30+
py_modules=['jack'],
31+
install_requires=['CFFI'],
32+
extras_require={'NumPy': ['NumPy']},
33+
author='Matthias Geier',
34+
author_email='[email protected]',
35+
description='JACK Audio Connection Kit (JACK) Client for Python',
36+
long_description=open('README.rst').read(),
37+
license='MIT',
38+
keywords='JACK audio low-latency multi-channel'.split(),
39+
url='http://jackclient-python.rtfd.org/',
40+
platforms='any',
4141
classifiers=[
42-
"License :: OSI Approved :: MIT License",
43-
"Operating System :: OS Independent",
44-
"Programming Language :: Python",
45-
"Programming Language :: Python :: 2",
46-
"Programming Language :: Python :: 3",
47-
"Topic :: Multimedia :: Sound/Audio",
42+
'License :: OSI Approved :: MIT License',
43+
'Operating System :: OS Independent',
44+
'Programming Language :: Python',
45+
'Programming Language :: Python :: 2',
46+
'Programming Language :: Python :: 3',
47+
'Topic :: Multimedia :: Sound/Audio',
4848
],
4949
tests_require=['pytest'],
5050
cmdclass={'test': PyTest},

0 commit comments

Comments
 (0)