Skip to content

Commit 105d2d3

Browse files
committed
Make usage of quotation marks consistent
1 parent ed1b193 commit 105d2d3

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

softioc/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
# Need to do this before calling anything in device.py
1919
iocshRegisterCommon()
2020
for dbd in ('base.dbd', 'PVAServerRegister.dbd', 'qsrv.dbd'):
21-
dbLoadDatabase(dbd, os.path.join(path.base_path, "dbd"), None)
22-
dbLoadDatabase("devIocStats.dbd", os.path.dirname(__file__), None)
21+
dbLoadDatabase(dbd, os.path.join(path.base_path, 'dbd'), None)
22+
dbLoadDatabase('devIocStats.dbd', os.path.dirname(__file__), None)
2323

2424
if registerRecordDeviceDriver(pdbbase):
2525
raise RuntimeError('Error registering')
2626

27-
__all__ = ["__version__"]
27+
__all__ = ['__version__']

softioc/builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def longOut(name, DRVL=None, DRVH=None, EGU=None, **fields):
6464
'EI', 'NI', 'TE', 'EL', 'TV', 'TT', 'FT', 'FF'] # 8-15
6565

6666
# All the severity strings supported by <prefix>SV
67-
_severityStrings = ["NO_ALARM", "MINOR", "MAJOR", "INVALID"]
67+
_severityStrings = ['NO_ALARM', 'MINOR', 'MAJOR', 'INVALID']
6868

6969
# Converts a list of (option [,severity]) values or tuples into field settings
7070
# suitable for mbbi and mbbo records.
@@ -78,7 +78,7 @@ def process_value(prefix, value, option, severity=None):
7878
severity = _severityStrings[severity]
7979
fields[prefix + 'SV'] = severity
8080
# zip() silently ignores extra values in options, so explicitly check length
81-
assert len(options) <= 16, "May not specify more than 16 enum values"
81+
assert len(options) <= 16, 'May not specify more than 16 enum values'
8282
for prefix, (value, option) in zip(_mbbPrefixes, enumerate(options)):
8383
if isinstance(option, tuple):
8484
# The option is tuple consisting of the option name and an optional

softioc/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def __init__(self, record_type, fields):
7474
self.fields = get_field_offsets(record_type)
7575
missing = set(fields) - set(self.fields)
7676
assert not missing, \
77-
"Fields not supported by %s: %s" % (record_type, sorted(missing))
77+
'Fields not supported by %s: %s' % (record_type, sorted(missing))
7878

7979
def __call__(self, record):
8080
'''Converts a raw pointer to a record structure into a _Record object

softioc/imports.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@
1212

1313
# These are in the extension
1414
def get_DBF_values():
15-
"""Return {DBF_name: DBF_int_value} mapping"""
15+
'''Return {DBF_name: DBF_int_value} mapping'''
1616
return _extension.get_DBF_values()
1717

1818
def get_field_offsets(record_type):
19-
"""Return {field_name: (offset, size, field_type)}"""
19+
'''Return {field_name: (offset, size, field_type)}'''
2020
return _extension.get_field_offsets(record_type)
2121

2222
def db_put_field(name, dbr_type, pbuffer, length):
23-
"""Put field where pbuffer is void* pointer. Returns RC"""
23+
'''Put field where pbuffer is void* pointer. Returns RC'''
2424
return _extension.db_put_field(name, dbr_type, pbuffer, length)
2525

2626
def install_pv_logging(acf_file):
27-
"""Install pv logging"""
27+
'''Install pv logging'''
2828
_extension.install_pv_logging(acf_file)
2929

3030
def expect_success(status, function, args):

softioc/softioc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def epicsAtPyExit():
1818

1919

2020
def iocInit(dispatcher=None):
21-
"""This must be called exactly once after loading all EPICS database files.
21+
'''This must be called exactly once after loading all EPICS database files.
2222
After this point the EPICS IOC is running and serving PVs.
2323
2424
Args:
@@ -28,7 +28,7 @@ def iocInit(dispatcher=None):
2828
2929
See Also:
3030
`softioc.asyncio_dispatcher` is a dispatcher for `asyncio` applications
31-
"""
31+
'''
3232
if dispatcher is None:
3333
# Fallback to cothread
3434
import cothread
@@ -263,7 +263,7 @@ def _add_records_from_file(dirname, file, substitutions):
263263
# possibly can put them out of order, but it works well enough for
264264
# devIocStats
265265
with open(os.path.join(dirname, file)) as f:
266-
lines, include_subs = [], ""
266+
lines, include_subs = [], ''
267267
for line in f.readlines():
268268
line = line.rstrip()
269269
if line.startswith('substitute'):
@@ -274,7 +274,7 @@ def _add_records_from_file(dirname, file, substitutions):
274274
# include "iocQueue.db"
275275
subs = substitutions
276276
if substitutions and include_subs:
277-
subs = substitutions + ", " + include_subs
277+
subs = substitutions + ', ' + include_subs
278278
else:
279279
subs = substitutions + include_subs
280280
_add_records_from_file(dirname, line.split('"')[1], subs)

0 commit comments

Comments
 (0)