Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Renamed libusb01 backend to libusb0.

  • Loading branch information...
commit 2082e70c32c62d4eb3345fe028e2fe5a2b7ec132 1 parent c6a9a8e
Wander Lairson Costa authored
4 tests/test_backend.py
@@ -30,7 +30,7 @@
30 30 import unittest
31 31 import devinfo
32 32 import usb.util
33   -import usb.backend.libusb01 as libusb01
  33 +import usb.backend.libusb0 as libusb0
34 34 import usb.backend.libusb1 as libusb1
35 35 import usb.backend.openusb as openusb
36 36
@@ -222,7 +222,7 @@ def __write_read(self, write_fn, read_fn, ep_out = 0x01, ep_in = 0x81):
222 222
223 223 def get_suite():
224 224 suite = unittest.TestSuite()
225   - for m in (libusb1, libusb01, openusb):
  225 + for m in (libusb1, libusb0, openusb):
226 226 b = m.get_backend()
227 227 if b is not None and utils.find_my_device(b):
228 228 utils.logger.info('Adding %s(%s) to test suite...', BackendTest.__name__, m.__name__)
4 tests/test_control.py
@@ -32,7 +32,7 @@
32 32 import usb.util
33 33 import usb.core
34 34 import usb.control
35   -import usb.backend.libusb01 as libusb01
  35 +import usb.backend.libusb0 as libusb0
36 36 import usb.backend.libusb1 as libusb1
37 37 import usb.backend.openusb as openusb
38 38
@@ -122,7 +122,7 @@ def test_get_string(self):
122 122
123 123 def get_suite():
124 124 suite = unittest.TestSuite()
125   - for m in (libusb1, libusb01, openusb):
  125 + for m in (libusb1, libusb0, openusb):
126 126 b = m.get_backend()
127 127 if b is None:
128 128 continue
4 tests/test_integration.py
@@ -33,7 +33,7 @@
33 33 import usb.core
34 34 import devinfo
35 35 import usb.util
36   -import usb.backend.libusb01 as libusb01
  36 +import usb.backend.libusb0 as libusb0
37 37 import usb.backend.libusb1 as libusb1
38 38 import usb.backend.openusb as openusb
39 39
@@ -234,7 +234,7 @@ def test_write_read(self):
234 234 def get_suite():
235 235 suite = unittest.TestSuite()
236 236 test_cases = (DeviceTest, ConfigurationTest, InterfaceTest, EndpointTest)
237   - for m in (libusb1, libusb01, openusb):
  237 + for m in (libusb1, libusb0, openusb):
238 238 b = m.get_backend()
239 239 if b is None:
240 240 continue
2  usb/backend/libusb01.py → usb/backend/libusb0.py
@@ -41,7 +41,7 @@
41 41
42 42 __all__ = ['get_backend']
43 43
44   -_logger = logging.getLogger('usb.backend.libusb01')
  44 +_logger = logging.getLogger('usb.backend.libusb0')
45 45
46 46 # usb.h
47 47
4 usb/core.py
@@ -844,10 +844,10 @@ def device_iter(k, v):
844 844
845 845 if backend is None:
846 846 import usb.backend.libusb1 as libusb1
847   - import usb.backend.libusb01 as libusb01
  847 + import usb.backend.libusb0 as libusb0
848 848 import usb.backend.openusb as openusb
849 849
850   - for m in (libusb1, openusb, libusb01):
  850 + for m in (libusb1, openusb, libusb0):
851 851 backend = m.get_backend()
852 852 if backend is not None:
853 853 _logger.info('find(): using backend "%s"', m.__name__)

0 comments on commit 2082e70

Please sign in to comment.
Something went wrong with that request. Please try again.