[cctbxbb] cctbx.python unnecessarily unfriendly

James Stroud xtald00d at gmail.com
Wed Jan 8 16:30:49 PST 2014


On Jan 8, 2014, at 5:11 PM, Luc Bourhis <luc_j_bourhis at mac.com> wrote:

> Hi James,
> 
>> fix-division
>> ============
>> For all .py files in the present directory, it will add the “from future” to any files that need it, recursively. The new line will go after any “#!” line or module level docstrings and before any other line. Variable whitespace is handled gracefully. This allows any document generators to recognize the module-level docstrings.
> 
> libtbx.add_from_future_import_division path/to/some/directory
> 
> does already do that. That's the script I wrote in order to mass insert "from __future__ import division" everywhere in the cctbx a few years back


So apply it!



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://phenix-online.org/pipermail/cctbxbb/attachments/20140108/190e4866/attachment.htm>


More information about the cctbxbb mailing list