32.8. "tabnanny" — Détection d’indentation ambiguë
**************************************************

**Code source :** Lib/tabnanny.py

======================================================================

Pour l’instant ce module est destiné à être appelé comme un script.
Toutefois, il est possible de l’importer dans un IDE et d’utiliser la
fonction "check()" décrite ci-dessous.

Note: L’API fournie par ce module est susceptible de changer dans
  les versions futures ; ces modifications peuvent ne pas être rétro-
  compatibles.

tabnanny.check(file_or_dir)

   If *file_or_dir* is a directory and not a symbolic link, then
   recursively descend the directory tree named by *file_or_dir*,
   checking all ".py" files along the way.  If *file_or_dir* is an
   ordinary Python source file, it is checked for whitespace related
   problems.  The diagnostic messages are written to standard output
   using the print statement.

tabnanny.verbose

   Option indiquant s’il faut afficher des messages détaillés. Cela
   est incrémenté par l’option "-v" s’il est appelé comme un script.

tabnanny.filename_only

   Option indiquant s’il faut afficher uniquement les noms de fichiers
   contenant des problèmes liés aux espaces blancs.  Est défini à True
   par l’option "-q" s’il est appelé comme un script.

exception tabnanny.NannyNag

   Raised by "process_tokens()" if detecting an ambiguous indent.
   Captured and handled in "check()".

tabnanny.process_tokens(tokens)

   This function is used by "check()" to process tokens generated by
   the "tokenize" module.

Voir aussi:

  Module "tokenize"
     Analyseur lexical pour le code source Python.
