Skip to content
This repository has been archived by the owner on Dec 30, 2018. It is now read-only.

Commit

Permalink
Examples: PEP8
Browse files Browse the repository at this point in the history
Signed-off-by: Jerome Flesch <jflesch@gmail.com>
  • Loading branch information
jflesch committed Aug 15, 2014
1 parent 89882aa commit 391937a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/scan.py
Expand Up @@ -58,7 +58,7 @@ def set_scanner_opt(scanner, opt, value):
# beware: don't select a source that is not in the constraint,
# with some drivers (Brother DCP-8025D for instance), it may segfault.
if (device.options['source'].constraint_type
== pyinsane.SaneConstraintType.STRING_LIST):
== pyinsane.SaneConstraintType.STRING_LIST):
if 'Auto' in device.options['source'].constraint:
source = 'Auto'
elif 'FlatBed' in device.options['source'].constraint:
Expand Down
4 changes: 2 additions & 2 deletions examples/scan_adf.py
Expand Up @@ -16,8 +16,8 @@ def main(args):
assert(len(devices) > 0)
device = devices[0]

print("Will use the scanner [%s]" % (str(device)))
scanner_id = device.name
print("Will use the scanner [%s](%s)"
% (str(device), device.name))

possible_srcs = device.options['source'].constraint
adf_src = None
Expand Down

0 comments on commit 391937a

Please sign in to comment.