[gobject-introspection] PEP8 fixes in shlib.py



commit 2959fd6db9b8f255cc53ed1c943066d4006c7913
Author: Simon Feltman <sfeltman src gnome org>
Date:   Wed Feb 26 15:15:39 2014 -0800

    PEP8 fixes in shlib.py
    
    Conform shlibs.py to the PEP8 standard. New additions were causing make
    check to fail:
     Fixed E211 whitespace before '('
     Fixed E501 line too long (104 > 99 characters)

 giscanner/shlibs.py |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py
index e3a71d3..ec974fa 100644
--- a/giscanner/shlibs.py
+++ b/giscanner/shlibs.py
@@ -105,8 +105,8 @@ def _resolve_non_libtool(options, binary, libraries):
             # Use the dumpbin utility that's included in
             # every Visual C++ installation to find out which
             # DLL the library gets linked to
-            args.append ('dumpbin.exe')
-            args.append ('-symbols')
+            args.append('dumpbin.exe')
+            args.append('-symbols')
 
         # When we are not using Visual C++ (i.e. we are using GCC)...
         else:
@@ -151,16 +151,16 @@ def _resolve_non_libtool(options, binary, libraries):
                         o, e = proc.communicate()
                         for line in o.splitlines():
                             if is_msvc:
-                                # On Visual Studio, dumpbin -symbols something.lib gives the filename of
-                                # DLL without the '.dll' extension that something.lib links to,
-                                # in the line that contains
+                                # On Visual Studio, dumpbin -symbols something.lib gives the
+                                # filename of DLL without the '.dll' extension that something.lib
+                                # links to, in the line that contains
                                 # __IMPORT_DESCRIPTOR_<dll_filename_that_something.lib_links_to>
 
                                 if '__IMPORT_DESCRIPTOR_' in line:
                                     line_tokens = line.split()
                                     for item in line_tokens:
-                                        if item.startswith ('__IMPORT_DESCRIPTOR_'):
-                                            shlibs.append (item[20:] + '.dll')
+                                        if item.startswith('__IMPORT_DESCRIPTOR_'):
+                                            shlibs.append(item[20:] + '.dll')
                                             found = True
                                             break
                                 if found:


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