Permalink
Browse files

Renamed libusb01 backend to libusb0.

  • Loading branch information...
1 parent c6a9a8e commit 2082e70c32c62d4eb3345fe028e2fe5a2b7ec132 @walac committed Jul 9, 2012
Showing with 9 additions and 9 deletions.
  1. +2 −2 tests/test_backend.py
  2. +2 −2 tests/test_control.py
  3. +2 −2 tests/test_integration.py
  4. +1 −1 usb/backend/{libusb01.py → libusb0.py}
  5. +2 −2 usb/core.py
View
@@ -30,7 +30,7 @@
import unittest
import devinfo
import usb.util
-import usb.backend.libusb01 as libusb01
+import usb.backend.libusb0 as libusb0
import usb.backend.libusb1 as libusb1
import usb.backend.openusb as openusb
@@ -222,7 +222,7 @@ def __write_read(self, write_fn, read_fn, ep_out = 0x01, ep_in = 0x81):
def get_suite():
suite = unittest.TestSuite()
- for m in (libusb1, libusb01, openusb):
+ for m in (libusb1, libusb0, openusb):
b = m.get_backend()
if b is not None and utils.find_my_device(b):
utils.logger.info('Adding %s(%s) to test suite...', BackendTest.__name__, m.__name__)
View
@@ -32,7 +32,7 @@
import usb.util
import usb.core
import usb.control
-import usb.backend.libusb01 as libusb01
+import usb.backend.libusb0 as libusb0
import usb.backend.libusb1 as libusb1
import usb.backend.openusb as openusb
@@ -122,7 +122,7 @@ def test_get_string(self):
def get_suite():
suite = unittest.TestSuite()
- for m in (libusb1, libusb01, openusb):
+ for m in (libusb1, libusb0, openusb):
b = m.get_backend()
if b is None:
continue
@@ -33,7 +33,7 @@
import usb.core
import devinfo
import usb.util
-import usb.backend.libusb01 as libusb01
+import usb.backend.libusb0 as libusb0
import usb.backend.libusb1 as libusb1
import usb.backend.openusb as openusb
@@ -234,7 +234,7 @@ def test_write_read(self):
def get_suite():
suite = unittest.TestSuite()
test_cases = (DeviceTest, ConfigurationTest, InterfaceTest, EndpointTest)
- for m in (libusb1, libusb01, openusb):
+ for m in (libusb1, libusb0, openusb):
b = m.get_backend()
if b is None:
continue
@@ -41,7 +41,7 @@
__all__ = ['get_backend']
-_logger = logging.getLogger('usb.backend.libusb01')
+_logger = logging.getLogger('usb.backend.libusb0')
# usb.h
View
@@ -844,10 +844,10 @@ def device_iter(k, v):
if backend is None:
import usb.backend.libusb1 as libusb1
- import usb.backend.libusb01 as libusb01
+ import usb.backend.libusb0 as libusb0
import usb.backend.openusb as openusb
- for m in (libusb1, openusb, libusb01):
+ for m in (libusb1, openusb, libusb0):
backend = m.get_backend()
if backend is not None:
_logger.info('find(): using backend "%s"', m.__name__)

0 comments on commit 2082e70

Please sign in to comment.