[gobject-introspection] scanner: Pacify PEP8
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] scanner: Pacify PEP8
- Date: Wed, 30 Sep 2015 03:36:16 +0000 (UTC)
commit c8180733e309b9f6746036346c91270283dcf917
Author: Colin Walters <walters verbum org>
Date: Tue Sep 29 23:32:15 2015 -0400
scanner: Pacify PEP8
giscanner/ccompiler.py | 2 +-
giscanner/maintransformer.py | 2 +-
giscanner/message.py | 2 ++
giscanner/testcodegen.py | 6 +++---
4 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py
index 481b1e4..2f02bfc 100644
--- a/giscanner/ccompiler.py
+++ b/giscanner/ccompiler.py
@@ -236,7 +236,7 @@ class CCompiler(object):
include_dirs=includes,
extra_postargs=extra_postargs,
output_dir=source_str[tmpdir_idx + 1:
- source_str.rfind(os.sep)].encode('UTF-8'))
+ source_str.rfind(os.sep)].encode('UTF-8'))
def link(self, output, objects, lib_args):
# Note: This is used for non-libtool builds only!
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py
index 1a91c9f..8954fa7 100644
--- a/giscanner/maintransformer.py
+++ b/giscanner/maintransformer.py
@@ -1311,7 +1311,7 @@ method or constructor of some type."""
"""Look for virtual methods from the class structure."""
if not node.glib_type_struct:
# https://bugzilla.gnome.org/show_bug.cgi?id=629080
- #message.warn_node(node,
+ # message.warn_node(node,
# "Failed to find class structure for '%s'" % (node.name, ))
return
diff --git a/giscanner/message.py b/giscanner/message.py
index f36bcbc..065ee25 100644
--- a/giscanner/message.py
+++ b/giscanner/message.py
@@ -218,9 +218,11 @@ def warn(text, positions=None, prefix=None, marker_pos=None, marker_line=None):
def warn_node(node, text, context=None, positions=None):
log_node(WARNING, node, text, context=context, positions=positions)
+
def error_node(node, text, context=None, positions=None):
log_node(ERROR, node, text, context=context, positions=positions)
+
def warn_symbol(symbol, text):
ml = MessageLogger.get()
ml.log_symbol(WARNING, symbol, text)
diff --git a/giscanner/testcodegen.py b/giscanner/testcodegen.py
index 30e508e..846e151 100644
--- a/giscanner/testcodegen.py
+++ b/giscanner/testcodegen.py
@@ -25,14 +25,14 @@ from __future__ import unicode_literals
import sys
+from . import ast
+from .codegen import CCodeGenerator
+
if sys.version_info.major < 3:
from StringIO import StringIO
else:
from io import StringIO
-from . import ast
-from .codegen import CCodeGenerator
-
DEFAULT_C_VALUES = {ast.TYPE_ANY: 'NULL',
ast.TYPE_STRING: '""',
ast.TYPE_FILENAME: '""',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]