[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [bridgedb/master] Disable two pylint warnings, W1201 and W1401, in .pylintrc.



commit ed08f19067db40f8d1c43e7b5af013ca78b29688
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Wed Mar 12 00:40:30 2014 +0000

    Disable two pylint warnings, W1201 and W1401, in .pylintrc.
    
    These warnings are for:
    
    :logging-not-lazy (W1201):
      *Specify string format arguments as logging function parameters*
      Used when a logging statement has a call form of "logging.<logging
      method>(format_string % (format_args...))". Such calls should leave
      string interpolation to the logging method itself and be written
      "logging.<logging method>(format_string, format_args...)" so that the
      program may avoid incurring the cost of the interpolation in those
      cases in which no message will be logged. For more, see
      http://www.python.org/dev/peps/pep-0282/. This message belongs to the
      logging checker.
    
    :anomalous-backslash-in-string (W1401):
      *Anomalous backslash in string: '%s'. String constant might be
       missing an r prefix.*
      Used when a backslash is in a literal string but not as an
      escape. This message belongs to the string_constant checker.
---
 .pylintrc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.pylintrc b/.pylintrc
index ab53c88..6ba152c 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -33,7 +33,7 @@ load-plugins=
 # can either give multiple identifier separated by comma (,) or put this option
 # multiple time (only on the command line, not in the configuration file where
 # it should appear only once).
-#disable=
+disable=W1201,W1401
 
 
 [REPORTS]



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits