[meld] Minor vcview PEP8



commit 9ff37411f56d2619494a832b6299e49cbcf80701
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sat Apr 27 15:15:33 2013 +1000

    Minor vcview PEP8

 meld/vcview.py |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/meld/vcview.py b/meld/vcview.py
index 87f0865..48799b3 100644
--- a/meld/vcview.py
+++ b/meld/vcview.py
@@ -38,11 +38,6 @@ from . import vc
 from .ui import emblemcellrenderer
 from .ui import gnomeglade
 
-################################################################################
-#
-# Local Functions
-#
-################################################################################
 
 def _commonprefix(files):
     if len(files) != 1:
@@ -58,8 +53,8 @@ def cleanup_temp():
     # not marked for translation.
     for f in _temp_files:
         try:
-            assert os.path.exists(f) and os.path.isabs(f) and \
-                   os.path.dirname(f) == temp_location
+            assert (os.path.exists(f) and os.path.isabs(f) and
+                    os.path.dirname(f) == temp_location)
             # Windows throws permissions errors if we remove read-only files
             if os.name == "nt":
                 os.chmod(f, stat.S_IWRITE)
@@ -70,8 +65,8 @@ def cleanup_temp():
                   file=sys.stderr)
     for f in _temp_dirs:
         try:
-            assert os.path.exists(f) and os.path.isabs(f) and \
-                   os.path.dirname(f) == temp_location
+            assert (os.path.exists(f) and os.path.isabs(f) and
+                    os.path.dirname(f) == temp_location)
             shutil.rmtree(f, ignore_errors=1)
         except:
             except_str = "{0[0]}: \"{0[1]}\"".format(sys.exc_info())


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