Skip to content

Commit 7841b13

Browse files
committed
update README.rst
1 parent 8753d3a commit 7841b13

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ Usage
237237
.. code:: python
238238
239239
from os_urlpattern.config import get_default_config
240-
from os_urlpattern.formatter import JsonFormatter
240+
from os_urlpattern.formatter import PatternFormatter
241241
from os_urlpattern.pattern_maker import PatternMaker
242242
243243
conf = get_default_config()
@@ -248,10 +248,10 @@ Usage
248248
pattern_maker.load(url)
249249
250250
# dump pattern data
251-
formatter = JsonFormatter()
252-
for cluster in pattern_maker.process():
253-
for record in formatter.format(cluster):
254-
print(record)
251+
formatter = PatternFormatter()
252+
for url_meta, cluster in pattern_maker.make():
253+
for pattern in formatter.format(url_meta, cluster):
254+
print(pattern)
255255
256256
257257
Match URLs:

0 commit comments

Comments
 (0)