
def print_devices(b):
    for device in sorted(b.devices, key=lambda d: len(d.ancestors)):
        print(device)    # this is a blivet.devices.StorageDevice instance

    print()


def print_devices(b):
    print(b.devicetree)

Use DeviceTree.__str__ when printing devices in examples.
Use DeviceTree.__str__ when printing devices in examples.

  
  def print_devices(b):
+     print(b.devicetree)
-     for device in sorted(b.devices, key=lambda d: len(d.ancestors)):
-         print(device)    # this is a blivet.devices.StorageDevice instance
  
-     print()
- 
Use DeviceTree.__str__ when printing devices in examples.
## Code Before:

def print_devices(b):
    for device in sorted(b.devices, key=lambda d: len(d.ancestors)):
        print(device)    # this is a blivet.devices.StorageDevice instance

    print()

## Instruction:
Use DeviceTree.__str__ when printing devices in examples.
## Code After:

def print_devices(b):
    print(b.devicetree)
