[cctbxbb] cctbx.python unnecessarily unfriendly
Luc Bourhis
luc_j_bourhis at mac.com
Wed Jan 8 16:11:40 PST 2014
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.
Best wishes,
Luc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://phenix-online.org/pipermail/cctbxbb/attachments/20140109/656faf68/attachment.htm>
More information about the cctbxbb
mailing list