[PATCH 7 of 8 cubicweb] [doc] Fix bugs in code examples

Simon Chabot simon.chabot at logilab.fr
Wed Mar 18 17:20:25 CET 2020


Hi,

    In addition to Nicola's remarks, I think you should remove the whitespace
    before the parenthesis when you call the print function (E211) (or any
    function).

Quoting Elodie Thieblin (2020-03-18 14:39:36)
> diff --git a/doc/tutorials/advanced/part03_bfss.rst b/doc/tutorials/advanced/part03_bfss.rst
> --- a/doc/tutorials/advanced/part03_bfss.rst
> +++ b/doc/tutorials/advanced/part03_bfss.rst
> @@ -31,7 +31,7 @@ in :file:`cubicweb_sytweb/hooks.py` :
>              bfssdir = join(self.repo.config.appdatahome, 'bfss')
>              if not exists(bfssdir):
>                  makedirs(bfssdir)
> -                print 'created', bfssdir
> +                print ('created', bfssdir)
>              storage = storages.BytesFileSystemStorage(bfssdir)
>              storages.set_attribute_storage(self.repo, 'File', 'data', storage)
>  
> 

--
Simon Chabot
logilab.fr - services en informatique scientifique et gestion de connaissances



More information about the cubicweb-devel mailing list