From b41d7017277c4ffde3b423cf34e3a61301a5ca35 Mon Sep 17 00:00:00 2001 From: Alexander Speshilov Date: Tue, 28 Feb 2023 16:20:53 +0300 Subject: fix example in docs/examples/python.rst (#1606) --- docs/examples/python.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/examples') diff --git a/docs/examples/python.rst b/docs/examples/python.rst index c3904863..dfc0abb3 100644 --- a/docs/examples/python.rst +++ b/docs/examples/python.rst @@ -35,10 +35,10 @@ To do this, we'll begin by importing `archinstall` in our `./archinstall/example import archinstall - all_drives = archinstall.list_drives() - print(all_drives) + all_drives = archinstall.all_blockdevices(partitions=False) + print(list(all_drives.keys())) -This should print out a list of drives and some meta-information about them. +This should print out a list of drives. As an example, this will do just fine. Now, go ahead and install the library either as a user-module or system-wide. -- cgit v1.2.3-70-g09d2