Skip to content
Browse files

Fixed: find() function returns -1 when not findind a substring.

  • Loading branch information...
1 parent 0004eb6 commit e38ebbaf3a203349e79f5bc0e863986790d7352c @walac committed Aug 25, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 usb/backend/libusb0.py
View
4 usb/backend/libusb0.py
@@ -47,8 +47,8 @@
_PC_PATH_MAX = 4
-if sys.platform.find('bsd') or sys.platform.find('mac') != -1 or \
- sys.platform.find('darwin'):
+if sys.platform.find('bsd') != -1 or sys.platform.find('mac') != -1 or \
+ sys.platform.find('darwin') != -1:
_PATH_MAX = 1024
elif sys.platform == 'win32' or sys.platform == 'cygwin':
_PATH_MAX = 511

0 comments on commit e38ebba

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