Skip to content

Commit 4d6d8ff

Browse files
committed
clean up
1 parent d1db768 commit 4d6d8ff

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,13 @@ You can also use bagit programatically in your own Python programs.
6666
To create a bag you would do this:
6767

6868
```python
69-
import bagit
7069
bag = bagit.make_bag('mydir', {'Contact-Name': 'John Kunze'})
7170
```
7271

7372
`make_bag` returns a Bag instance. If you have a bag already on disk and would
7473
like to create a Bag instance for it, simply call the constructor directly:
7574

7675
```python
77-
import bagit
7876
bag = bagit.Bag('/path/to/bag')
7977
```
8078

@@ -84,9 +82,6 @@ You can change the metadata persisted to the bag-info.txt by using the `info`
8482
property on a `Bag`.
8583

8684
```python
87-
88-
import bagit, shutil, os
89-
9085
# load the bag
9186
bag = bagit.Bag('/path/to/bag')
9287

@@ -147,8 +142,6 @@ you can do this:
147142

148143
```python
149144

150-
import bagit
151-
152145
bag = bagit.Bag("/path/to/bag")
153146

154147
try:

0 commit comments

Comments
 (0)