[CalendarServer-changes] [3669] CalendarServer/trunk/pyflakes

source_changes at macosforge.org source_changes at macosforge.org
Thu Feb 12 16:32:43 PST 2009


Revision: 3669
          http://trac.macosforge.org/projects/calendarserver/changeset/3669
Author:   wsanchez at apple.com
Date:     2009-02-12 16:32:42 -0800 (Thu, 12 Feb 2009)
Log Message:
-----------
Showing off my sed-fu.  Yeah, that's right.  I can sed.
(One command instead of N in the filter pipeline.)

Modified Paths:
--------------
    CalendarServer/trunk/pyflakes

Modified: CalendarServer/trunk/pyflakes
===================================================================
--- CalendarServer/trunk/pyflakes	2009-02-12 23:56:58 UTC (rev 3668)
+++ CalendarServer/trunk/pyflakes	2009-02-13 00:32:42 UTC (rev 3669)
@@ -12,9 +12,9 @@
   set - calendarserver twistedcaldav twext;
 fi;
 
-cd "${wd}" && "${flakes}/bin/pyflakes" "$@"                              |
-  grep -ve "undefined name '_'"                                          |
-  grep -ve "redefinition of unused"                                      |
-  grep -ve "'from .* import \\*' used; unable to detect undefined names" |
-  grep -ve "redefinition of function"                                    |
-  cat;
+cd "${wd}" && "${flakes}/bin/pyflakes" "$@" | sed                     \
+  -e "/undefined name '_'/d"                                          \
+  -e "/redefinition of unused/d"                                      \
+  -e "/'from .* import \\*' used; unable to detect undefined names/d" \
+  -e "/redefinition of function/d"                                    \
+  ;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090212/feae7a22/attachment.html>


More information about the calendarserver-changes mailing list