Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2023-04-02 13:50:24 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2023-04-02 13:50:24 +0200
commitaf7ab9833c9f9944874f0162ae0975175ddc628d (patch)
treec486d4948b5994125f95c8aa1d61a059c1351127 /docs/examples
parent2caad35a885f9be30d5bf79a47f5456f276ae67b (diff)
parent6e3c6f8863041b54f6d8cf7af37f9719c493eadd (diff)
Merge branch 'upstreamMaster'
Diffstat (limited to 'docs/examples')
-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.