fix various bugs found by the 'prospector' static-analysis tool

This commit is contained in:
Andrew Scheller
2016-04-07 16:12:17 +01:00
parent 4f7e1f003e
commit 72ca075668
13 changed files with 33 additions and 34 deletions

View File

@@ -13,13 +13,18 @@ from functools import wraps
from threading import Event
from collections import deque
try:
from statistics import median, mean
from statistics import median
except ImportError:
from .compat import median, mean
from .compat import median
from .threads import GPIOThread
from .exc import BadEventHandler, DeviceClosed
from .exc import (
BadEventHandler,
DeviceClosed,
GPIOBadSourceDelay,
GPIOBadQueueLen,
GPIOBadSampleWait,
)
class ValuesMixin(object):
"""