Skip to content

Commit

Permalink
#27 Added missing dependency to mock and cleaned up formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
krichardsson committed Dec 22, 2016
1 parent 40d6e53 commit ff7077b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cflib/crazyflie/syncCrazyflie.py
Expand Up @@ -23,19 +23,19 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.

from threading import Thread, Event
from cflib.crazyflie import Crazyflie

"""
The syncronous Crazyflie class is a wrapper around the "normal" Crazyflie
class. It handles the asynchronous nature of the Crazyflie API and turns it
into blocking function. It is useful for simple scripts that performs tasks
as a sequence of events.
"""
from threading import Event

from cflib.crazyflie import Crazyflie


class SyncCrazyflie:

def __init__(self, link_uri, cf=Crazyflie()):
""" Create a synchronous Crazyflie instance with the specified
link_uri """
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
@@ -1,5 +1,6 @@
-e .

coverage
mock
pre-commit
tox

0 comments on commit ff7077b

Please sign in to comment.