[gobject-introspection] [pep8] Skip emacs backup files



commit a17f157e19bd6792c00321c8020dca5e5a281f45
Author: Johan Dahlin <johan gnome org>
Date:   Mon Sep 6 13:05:26 2010 -0300

    [pep8] Skip emacs backup files

 misc/pep8.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/misc/pep8.py b/misc/pep8.py
index 1a50efc..3890629 100644
--- a/misc/pep8.py
+++ b/misc/pep8.py
@@ -824,6 +824,9 @@ def _main():
     start_time = time.time()
     errors = 0
     for path in args:
+        # skip emacs backups
+        if path.startswith(".#"):
+            continue
         if os.path.isdir(path):
             errors += input_dir(path)
         else:



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