Skip to content

Commit

Permalink
README: indicate code blocks (#27)
Browse files Browse the repository at this point in the history
This commit indicates that code blocks are Python so that GitHub
adds syntax highlighting.
  • Loading branch information
djmoch authored Dec 30, 2024
1 parent e2e7bdc commit 6a98f35
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ backend (i.e., to read passwords from the running server).
When using the FactotumClient directly, arguments are passed as
keyword arguments, which are built into a key template internally:

```
``` python
from py9pfactotum import FactotumClient

c = FactotumClient()
c.getpass(server='mail.example.org', user='johndoe')
{ 'user': 'johndoe', 'passwd': 'insecure' }
Expand All @@ -33,8 +34,9 @@ When using the auth(3) functions, the function signatures mirror
their plan9port counterparts, except that structures are replaced
with dictionaries.

```
``` python
from py9pfactotum import auth_getuserpasswd

c = auth_getuserpasswd(server='mail.example.org')
{ 'user': 'johndoe', 'passwd': 'insecure' }
```
Expand Down

0 comments on commit 6a98f35

Please sign in to comment.