8000 correct variable in example in migration.rst · python/importlib_resources@be5a270 · GitHub
[go: up one dir, main page]

Skip to content

Commit be5a270

Browse files
altendkyFFY00
authored andcommitted
correct variable in example in migration.rst
1 parent 0058f32 commit be5a270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/migration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ following example is often written for clarity as::
109109
This can be easily rewritten like so::
110110

111111
ref = importlib_resources.files('my.package').joinpath('resource.dat')
112-
contents = f.read_bytes()
112+
contents = ref.read_bytes()
113113

114114

115115
pkg_resources.resource_listdir()

0 commit comments

Comments
 (0)
0