Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Speshilov <speshuric@gmail.com>2023-02-28 16:20:53 +0300
committerGitHub <noreply@github.com>2023-02-28 14:20:53 +0100
commitb41d7017277c4ffde3b423cf34e3a61301a5ca35 (patch)
tree7eba6d85b5a98f029a19d90ee2aa9246663d6c72
parent60d76d907a13df2368af24105232a7de18c10e36 (diff)
fix example in docs/examples/python.rst (#1606)
-rw-r--r--docs/examples/python.rst6
1 files changed, 3 insertions, 3 deletions
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.