From 761235a083502f78b3b45abb48c9bd1b86228d6d Mon Sep 17 00:00:00 2001 From: Wander Lairson Costa Date: Thu, 19 Jun 2014 09:32:53 -0300 Subject: [PATCH] Update Copyright notice. --- LICENSE | 2 +- setup.py | 2 +- tests/devinfo.py | 2 +- tests/test_backend.py | 2 +- tests/test_control.py | 2 +- tests/test_find.py | 10 +++++----- tests/test_integration.py | 2 +- tests/test_util.py | 10 +++++----- tests/testall.py | 10 +++++----- tests/utils.py | 12 ++++++------ usb/__init__.py | 2 +- usb/_debug.py | 10 +++++----- usb/_interop.py | 2 +- usb/_lookup.py | 2 +- usb/backend/__init__.py | 2 +- usb/backend/libusb0.py | 2 +- usb/backend/libusb1.py | 2 +- usb/backend/openusb.py | 2 +- usb/control.py | 2 +- usb/core.py | 2 +- usb/legacy.py | 12 ++++++------ usb/util.py | 2 +- 22 files changed, 48 insertions(+), 48 deletions(-) diff --git a/LICENSE b/LICENSE index 1c88b5a7..37daeae3 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (C) 2009-2011 Wander Lairson Costa. All Rights Reserved. +Copyright (C) 2009-2014 Wander Lairson Costa. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions diff --git a/setup.py b/setup.py index 38c60530..1ac5b8c7 100755 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright (C) 2009-2013 Wander Lairson Costa +# Copyright (C) 2009-2014 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. diff --git a/tests/devinfo.py b/tests/devinfo.py index 2067f119..2ae9ba99 100644 --- a/tests/devinfo.py +++ b/tests/devinfo.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2013 Wander Lairson Costa +# Copyright (C) 2009-2014 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. diff --git a/tests/test_backend.py b/tests/test_backend.py index eb729bb9..4dee8f09 100644 --- a/tests/test_backend.py +++ b/tests/test_backend.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2013 Wander Lairson Costa +# Copyright (C) 2009-2014 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. diff --git a/tests/test_control.py b/tests/test_control.py index c7dd30e8..bf634659 100644 --- a/tests/test_control.py +++ b/tests/test_control.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2013 Wander Lairson Costa +# Copyright (C) 2009-2014 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. diff --git a/tests/test_find.py b/tests/test_find.py index 904ca525..4d71d71a 100644 --- a/tests/test_find.py +++ b/tests/test_find.py @@ -1,8 +1,8 @@ -# Copyright (C) 2009-2013 Wander Lairson Costa -# +# Copyright (C) 2009-2014 Wander Lairson Costa +# # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. -# +# # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provided # that existing copyright notices are retained in all copies and that this @@ -12,13 +12,13 @@ # and need not follow the licensing terms described here, provided that # the new terms are clearly indicated on the first page of each file where # they apply. -# +# # IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY # FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES # ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY # DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -# +# # THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE diff --git a/tests/test_integration.py b/tests/test_integration.py index dbd9738d..534d9bef 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2013 Wander Lairson Costa +# Copyright (C) 2009-2014 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. diff --git a/tests/test_util.py b/tests/test_util.py index 02e32451..9b399a03 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -1,8 +1,8 @@ -# Copyright (C) 2009-2013 Wander Lairson Costa -# +# Copyright (C) 2009-2014 Wander Lairson Costa +# # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. -# +# # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provided # that existing copyright notices are retained in all copies and that this @@ -12,13 +12,13 @@ # and need not follow the licensing terms described here, provided that # the new terms are clearly indicated on the first page of each file where # they apply. -# +# # IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY # FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES # ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY # DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -# +# # THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE diff --git a/tests/testall.py b/tests/testall.py index c5909053..cd388533 100755 --- a/tests/testall.py +++ b/tests/testall.py @@ -1,10 +1,10 @@ #!/usr/bin/env python # -# Copyright (C) 2009-2013 Wander Lairson Costa -# +# Copyright (C) 2009-2014 Wander Lairson Costa +# # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. -# +# # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provided # that existing copyright notices are retained in all copies and that this @@ -14,13 +14,13 @@ # and need not follow the licensing terms described here, provided that # the new terms are clearly indicated on the first page of each file where # they apply. -# +# # IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY # FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES # ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY # DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -# +# # THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE diff --git a/tests/utils.py b/tests/utils.py index 55d34fd3..e543202a 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,8 +1,8 @@ -# Copyright (C) 2009-2013 Wander Lairson Costa -# +# Copyright (C) 2009-2014 Wander Lairson Costa +# # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. -# +# # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provided # that existing copyright notices are retained in all copies and that this @@ -12,13 +12,13 @@ # and need not follow the licensing terms described here, provided that # the new terms are clearly indicated on the first page of each file where # they apply. -# +# # IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY # FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES # ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY # DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -# +# # THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE @@ -63,7 +63,7 @@ def get_list_data2(length = 8): data.reverse() return data -def get_str_data1(length = 8): +def get_str_data1(length = 8): if sys.version_info[0] >= 3: # On Python 3, string char is 4 bytes long length = int(length / 4) diff --git a/usb/__init__.py b/usb/__init__.py index a231117e..666f3a4c 100644 --- a/usb/__init__.py +++ b/usb/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2013 Wander Lairson Costa +# Copyright (C) 2009-2014 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. diff --git a/usb/_debug.py b/usb/_debug.py index 8b1f9102..4a6ea09a 100644 --- a/usb/_debug.py +++ b/usb/_debug.py @@ -1,8 +1,8 @@ -# Copyright (C) 2009-2013 Wander Lairson Costa -# +# Copyright (C) 2009-2014 Wander Lairson Costa +# # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. -# +# # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provided # that existing copyright notices are retained in all copies and that this @@ -12,13 +12,13 @@ # and need not follow the licensing terms described here, provided that # the new terms are clearly indicated on the first page of each file where # they apply. -# +# # IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY # FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES # ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY # DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -# +# # THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE diff --git a/usb/_interop.py b/usb/_interop.py index 268ddca3..6287bacc 100644 --- a/usb/_interop.py +++ b/usb/_interop.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2013 Wander Lairson Costa +# Copyright (C) 2009-2014 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. diff --git a/usb/_lookup.py b/usb/_lookup.py index 034df887..cf84b041 100644 --- a/usb/_lookup.py +++ b/usb/_lookup.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2013 Wander Lairson Costa +# Copyright (C) 2009-2014 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. diff --git a/usb/backend/__init__.py b/usb/backend/__init__.py index fdebbe38..7b8e1a98 100644 --- a/usb/backend/__init__.py +++ b/usb/backend/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2013 Wander Lairson Costa +# Copyright (C) 2009-2014 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. diff --git a/usb/backend/libusb0.py b/usb/backend/libusb0.py index 4af13bb1..c90a83cd 100644 --- a/usb/backend/libusb0.py +++ b/usb/backend/libusb0.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2013 Wander Lairson Costa +# Copyright (C) 2009-2014 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. diff --git a/usb/backend/libusb1.py b/usb/backend/libusb1.py index 3967b95f..b7eabff9 100644 --- a/usb/backend/libusb1.py +++ b/usb/backend/libusb1.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2013 Wander Lairson Costa +# Copyright (C) 2009-2014 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. diff --git a/usb/backend/openusb.py b/usb/backend/openusb.py index 1cae515e..fa5cffda 100644 --- a/usb/backend/openusb.py +++ b/usb/backend/openusb.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2013 Wander Lairson Costa +# Copyright (C) 2009-2014 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. diff --git a/usb/control.py b/usb/control.py index 1d327467..451a5d35 100644 --- a/usb/control.py +++ b/usb/control.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2013 Wander Lairson Costa +# Copyright (C) 2009-2014 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. diff --git a/usb/core.py b/usb/core.py index d2370c3b..3a1880b4 100644 --- a/usb/core.py +++ b/usb/core.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2013 Wander Lairson Costa +# Copyright (C) 2009-2014 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. diff --git a/usb/legacy.py b/usb/legacy.py index 60c52f05..745df334 100644 --- a/usb/legacy.py +++ b/usb/legacy.py @@ -1,8 +1,8 @@ -# Copyright (C) 2009-2013 Wander Lairson Costa -# +# Copyright (C) 2009-2014 Wander Lairson Costa +# # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. -# +# # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provided # that existing copyright notices are retained in all copies and that this @@ -12,13 +12,13 @@ # and need not follow the licensing terms described here, provided that # the new terms are clearly indicated on the first page of each file where # they apply. -# +# # IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY # FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES # ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY # DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -# +# # THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE @@ -188,7 +188,7 @@ def controlMsg(self, requestType, request, buffer, value = 0, index = 0, timeout requestType: specifies the direction of data flow, the type of request, and the recipient. request: specifies the request. - buffer: if the transfer is a write transfer, buffer is a sequence + buffer: if the transfer is a write transfer, buffer is a sequence with the transfer data, otherwise, buffer is the number of bytes to read. value: specific information to pass to the device. (default: 0) diff --git a/usb/util.py b/usb/util.py index cd30893c..784278af 100644 --- a/usb/util.py +++ b/usb/util.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2013 Wander Lairson Costa +# Copyright (C) 2009-2014 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files.