Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/talogo.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2011-02-03 01:54:24 (GMT)
committer Walter Bender <walter@sugarlabs.org>2011-02-03 01:54:24 (GMT)
commitcd9dbbfe31b8548bf48143fc8a212b076a51e533 (patch)
tree60e9065bb43f626354e8d12a86dc00241dbe5ffd /TurtleArt/talogo.py
parentf823515b4461dab9a22e5c8276dc1a9e6df83467 (diff)
pep8 cleanup
Diffstat (limited to 'TurtleArt/talogo.py')
-rw-r--r--TurtleArt/talogo.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/TurtleArt/talogo.py b/TurtleArt/talogo.py
index a1cd9b1..f107323 100644
--- a/TurtleArt/talogo.py
+++ b/TurtleArt/talogo.py
@@ -72,16 +72,17 @@ def find_device():
for i in os.listdir(os.path.join('.', 'devices')):
if not os.path.isdir(os.path.join('.', 'devices', i)):
try:
- _tempmod = __import__('devices.%s'%i.split('.')[0], globals(),
- locals(), ['RFIDReader'], -1)
+ _tempmod = __import__('devices.%s' % i.split('.')[0],
+ globals(), locals(), ['RFIDReader'], -1)
devtemp = _tempmod.RFIDReader()
if devtemp.get_present() == True:
device = devtemp
except Exception, e:
- _logger.error("FIND_DEVICE: %s: %s"%(i, e))
+ _logger.error("FIND_DEVICE: %s: %s" % (i, e))
pass
return device
+
class noKeyError(UserDict):
__missing__ = lambda x, y: 0
@@ -1441,7 +1442,7 @@ class LogoCode:
f.close()
except IOError:
self.tw.showlabel('nojournal', self.filepath)
- _logger.debug("Couldn't open filepath %s" % (self.filepath))
+ _logger.debug("Couldn't open %s" % (self.filepath))
else:
if description is not None:
text = str(description)
@@ -1504,7 +1505,7 @@ class LogoCode:
try:
ioctl(self._video_capture_device, v4l2.VIDIOC_G_CTRL,
self._ag_control)
- self._ag_control.value = 0 # disable AUTOGAIN
+ self._ag_control.value = 0 # disable AUTOGAIN
ioctl(self._video_capture_device, v4l2.VIDIOC_S_CTRL,
self._ag_control)
except: