sdwire 0.2.4__py3-none-any.whl → 0.2.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,12 +12,12 @@ class SDWire(USBDevice):
12
12
  def __init__(self, port_info: PortInfo, generation: int):
13
13
  super().__init__(port_info)
14
14
  self.generation = generation
15
- for sibling in self.dev_string.parent.children:
15
+ for child in self.dev_string.children:
16
16
  if (
17
- self.dev_string.device_path != sibling.device_path
18
- and sibling.device_type == "disk"
17
+ self.dev_string.device_path != child.device_path
18
+ and child.device_type == "disk"
19
19
  ):
20
- self.__block_dev = f"/dev/{sibling.device_path.split('/')[-1]}"
20
+ self.__block_dev = f"/dev/{child.device_path.split('/')[-1]}"
21
21
  break
22
22
 
23
23
  def switch_ts(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sdwire
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Summary: CLI application to interact with Badgerd SDWire devices
5
5
  License: GPL-3
6
6
  Author: Talha Can Havadar
@@ -1,14 +1,14 @@
1
1
  sdwire/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  sdwire/backend/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  sdwire/backend/detect.py,sha256=jiQ2JS9sMGUuymwyUO4FaGzIkXK3J7Ci45V1X8c94b4,2931
4
- sdwire/backend/device/sdwire.py,sha256=5Glk4M20sY7EJA5XDewT1F5F1-AUW1fG7mI9_wrABoM,1518
4
+ sdwire/backend/device/sdwire.py,sha256=nhjBjmxjjaM_rGYyXXdjr_85lEGny7c7-BC3KVcWoz4,1503
5
5
  sdwire/backend/device/sdwirec.py,sha256=imkj2ObrgowiM7DP9TnVbCES-8bju0T69Qzdw5OURgE,1657
6
6
  sdwire/backend/device/usb_device.py,sha256=5sdyOyPikIpFydKywzDkvvgLHFdMcsBC8tKosHRhfvQ,808
7
7
  sdwire/backend/utils.py,sha256=kMEyBbRO91REgvgICuBONGiImO6jTr6EpqkZaxQH4aU,1507
8
8
  sdwire/constants.py,sha256=s5mCx5NlJUM3aBbCPq2y3oOFoPPJ5wA3BR1snyK-cMg,119
9
9
  sdwire/main.py,sha256=G1WaVd4kBR3bTfbmHekjx1yObiz4f1NLGqznFepd2NY,2132
10
- sdwire-0.2.4.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
11
- sdwire-0.2.4.dist-info/METADATA,sha256=ZtSg0QMJGsQF52Aa_GlRkwbjn6mxK0EAiv15r_ITW-E,3104
12
- sdwire-0.2.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
13
- sdwire-0.2.4.dist-info/entry_points.txt,sha256=pxy0zJKVcNWXPk5PtNjTLExOBpqFNth37wtdYdYRXCE,43
14
- sdwire-0.2.4.dist-info/RECORD,,
10
+ sdwire-0.2.5.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
11
+ sdwire-0.2.5.dist-info/METADATA,sha256=OfCzihIvL2GUz8NhN-brLXW2EjUBZrp5Ov8HeUOXX4Q,3104
12
+ sdwire-0.2.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
13
+ sdwire-0.2.5.dist-info/entry_points.txt,sha256=pxy0zJKVcNWXPk5PtNjTLExOBpqFNth37wtdYdYRXCE,43
14
+ sdwire-0.2.5.dist-info/RECORD,,
File without changes