From 783722edce4320a0437595358f22a7e8d857ad79 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Tue, 18 Aug 2015 21:30:42 +0300 Subject: [PATCH] trezor: rename wrapper --- sshagent/trezor/{trezor_library.py => _factory.py} | 0 sshagent/trezor/client.py | 4 ++-- tox.ini | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename sshagent/trezor/{trezor_library.py => _factory.py} (100%) diff --git a/sshagent/trezor/trezor_library.py b/sshagent/trezor/_factory.py similarity index 100% rename from sshagent/trezor/trezor_library.py rename to sshagent/trezor/_factory.py diff --git a/sshagent/trezor/client.py b/sshagent/trezor/client.py index e0748e4..50dd501 100644 --- a/sshagent/trezor/client.py +++ b/sshagent/trezor/client.py @@ -5,7 +5,7 @@ import binascii from .. import util from .. import formats -from . import trezor_library +from . import _factory as TrezorFactory import logging log = logging.getLogger(__name__) @@ -13,7 +13,7 @@ log = logging.getLogger(__name__) class Client(object): - def __init__(self, factory=trezor_library): + def __init__(self, factory=TrezorFactory): self.factory = factory self.client = self.factory.client() f = self.client.features diff --git a/tox.ini b/tox.ini index 4568bb6..2ca1cd5 100644 --- a/tox.ini +++ b/tox.ini @@ -14,5 +14,5 @@ deps= commands= pep8 sshagent pylint --report=no --rcfile .pylintrc sshagent - coverage run --omit='sshagent/__main__.py,sshagent/trezor_library.py' --source sshagent/ -m py.test -v + coverage run --omit='sshagent/__main__.py,sshagent/trezor/_library.py' --source sshagent/ -m py.test -v coverage report