From f203744b4830418549698a143917d3c32b1efd8f Mon Sep 17 00:00:00 2001 From: David Wilson Date: Fri, 7 Dec 2018 21:01:50 +0000 Subject: [PATCH] examples: add one more comment --- examples/the_basics.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/the_basics.py b/examples/the_basics.py index 33cb8329..68ecd647 100644 --- a/examples/the_basics.py +++ b/examples/the_basics.py @@ -44,7 +44,12 @@ def streamy_download_file(context, path): Fetch a file from the FileService hosted by `context`. """ bio = io.BytesIO() + + # FileService.get() is not actually an exposed service method, it's just a + # classmethod that wraps up the complicated dance of implementing the + # transfer. ok, metadata = mitogen.service.FileService.get(context, path, bio) + return { 'success': ok, 'metadata': metadata,