hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [08/28] incubator-hawq git commit: HAWQ-837. Add python modules into HAWQ code
Date Tue, 21 Jun 2016 02:41:24 GMT
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/pychecker2/util.py
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/pychecker2/util.py b/tools/bin/pythonSrc/pychecker-0.8.18/pychecker2/util.py
new file mode 100644
index 0000000..55dee24
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/pychecker2/util.py
@@ -0,0 +1,73 @@
+
+class BaseVisitor:
+
+    def visit(self, unused_node):
+        "method is really overridden by compiler.visitor.ASTVisitor"
+        assert 0, 'Unreachable'
+
+    def visitChildren(self, n):
+        for c in n.getChildNodes():
+            self.visit(c)     
+
+def try_if_exclusive(stmt_node1, stmt_node2):
+    from compiler import ast as ast
+    
+    """return true if the statements are in exclusive parts of if/elif/else
+    or try/finally/else"""
+    
+    parent = stmt_node1.parent.parent
+    if parent == stmt_node2.parent.parent:
+        if isinstance(parent, ast.If):
+            parts = [code for test, code in parent.tests]
+            parts.append(parent.else_)
+            for part in parts:
+                if part and stmt_node1 in part.nodes:
+                    return stmt_node2 not in part.nodes
+        if isinstance(parent, ast.TryExcept):
+            parts = []
+            if parent.body:
+                parts.extend(parent.body.nodes)
+            if parent.else_:
+                parts.extend(parent.else_.nodes)
+            return not (stmt_node1 in parts and stmt_node2 in parts)
+    return None
+
+def parents(obj):
+    class Parents:
+        def __init__(self, start):
+            self.next = start
+        def __call__(self):
+            retval = self.next.parent
+            self.next = retval
+            return retval
+    return iter(Parents(obj), None)
+
+def enclosing_scopes(scopes, node):
+    result = []
+    n = node
+    while n:
+        try:
+            result.append(scopes[n])
+        except KeyError:
+            pass
+        n = n.parent
+    return result
+
+def type_filter(seq, *classes):
+    return [s for s in seq if isinstance(s, classes)]
+
+    
+def dict_minus(a, b):
+    r = {}
+    for k, v in a.iteritems():
+        if not b.has_key(k):
+            r[k] = v
+    return r
+
+def dict_intersect(a, b):
+    r = {}
+    for k, v in a.iteritems():
+        if b.has_key(k):
+            r[k] = v
+    return r
+

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/pycheckrc
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/pycheckrc b/tools/bin/pythonSrc/pychecker-0.8.18/pycheckrc
new file mode 100644
index 0000000..9ef8566
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/pycheckrc
@@ -0,0 +1,225 @@
+# Sample defaults file for PyChecker 0.8.17
+# This file should be called:  .pycheckrc
+# It should be placed in your home directory (value of $HOME).
+# If $HOME is not set, it will look in the current directory.
+
+# bool: only warn about files passed on the command line
+only = 0
+
+# int: the maximum number of warnings to be displayed
+limit = 10
+
+# bool: warnings for Doc Strings
+noDocModule = 0
+noDocClass = 0
+noDocFunc = 0
+
+# bool: when checking if class data members (attributes) are set
+#       check all members or __init__() only
+onlyCheckInitForMembers = 0
+
+# bool: warn when all module variables are not used (including private vars)
+allVariablesUsed = 0
+
+# bool: produce warnings for each occurrence of a warning for global (xxx)
+reportAllGlobals = 0
+
+# bool: warn when private module variables are not used (_var)
+privateVariableUsed = 1
+
+# bool: warn when imports are not used
+importUsed = 1
+
+# bool: warn when import and from ... import are used for same module
+mixImport = 1
+
+# bool: warn when imports are not used in __init__.py
+packageImportUsed = 1
+
+# bool: warn when a module reimports another module (import & from/import)
+moduleImportErrors = 1
+
+# bool: warn when modules import themselves
+reimportSelf = 1
+
+# bool: warn when local variables are not used
+localVariablesUsed = 1
+
+# bool: assume a, b, and c are used in this case:  a, b, c = func()
+unusedLocalTuple = 0
+
+# bool: warn when class attributes (data members) are unused
+membersUsed = 0
+
+# bool: warn when Subclass.__init__ is not called in a subclass
+baseClassInitted = 1
+
+# bool: warn when Subclass needs to override methods that only throw exceptions
+abstractClasses = 1
+
+# bool: warn when __init__ is defined in a subclass
+initDefinedInSubclass = 0
+
+# bool: warn when __init__ returns None
+returnNoneFromInit = 1
+
+# bool: warn when code is not reachable
+unreachableCode = 0
+
+# bool: warn when a constant is used in a conditional statement (if '':)
+constantConditions = 1
+
+# bool: warn when 1 is used in a conditional statement, (if 1: while 1: etc)
+constant1 = 0
+
+# bool: warn when iterating over a string in a for loop
+stringIteration = 1
+
+# bool: warn when setting a variable to different types
+inconsistentTypes = 0
+
+# bool: warn when setting a tuple of variables to a non-sequence (a, b = None)
+unpackNonSequence = 1
+
+# bool: warn when setting a tuple of variables to the wrong length (a, b = 1,)
+unpackLength = 1
+
+# bool: warn when using strings exceptions or 
+#       other classes not derived from Exception to raise/catch exceptions
+badExceptions = 1
+
+# bool: warn when statements appear to have no effect
+noEffect = 1
+
+# bool: warn when using (expr % 1), it has no effect on integers and strings
+modulo1 = 1
+
+# bool: warn if using (expr is const-literal), 
+# doesn't always work on integers and strings
+isLiteral = 1
+
+# bool: warn when possibly using string.find() improperly (if s.find():)
+stringFind = 1
+
+# bool: warn when using a deprecated module or function
+deprecated = 1
+
+# bool: warn when the class attribute does not exist
+classAttrExists = 1
+
+# bool: warn when calling an attribute not a method
+callingAttribute = 0
+
+# bool: warn when using named arguments: func(a=1, b=2), where def func(a, b):
+#       def func2(a, b, **kw): doesn't generate a warning
+namedArgs = 0
+
+# str: name of 'self' parameter
+methodArgName = 'self'
+
+# list of str: names of first parameter to classmethods
+classmethodArgNames = ['cls', 'klass']
+
+# bool: warn when method/function arguments are unused
+argumentsUsed = 1
+
+# bool: ignore if self is unused in methods
+ignoreSelfUnused = 0
+
+# bool: warn if functions/classes/methods names are redefined in same scope
+redefiningFunction = 1
+
+# bool:  check if an overriden method has the same signature
+#	 as base class method (__init__() methods are not checked)
+checkOverridenMethods = 1
+
+# bool:  check if a special (reserved) method has the correct signature
+#	 and is known (these are methods that begin and end with __
+checkSpecialMethods = 1
+
+# int: warnings for code complexity, max value before generating a warning
+maxLines = 200
+maxBranches = 50
+maxReturns = 10
+maxArgs = 10
+maxLocals = 40
+maxReferences = 5
+
+
+# bool:  ignore all warnings from standard library components
+#	 (this includes anything under the standard library, eg, site-packages)
+ignoreStandardLibrary = 0
+
+
+# list of strings: ignore unused locals/arguments if name is one of
+unusedNames = [ '_', 'empty', 'unused', 'dummy', ]
+
+
+# list of strings: ignore warnings generated from these modules
+blacklist = [ 'Tkinter', 'wxPython', 'gtk', 'GTK', 'GDK', ]
+
+
+# list of strings: ignore global variables not used if name is one of
+variablesToIgnore = [ '__all__', '__version__', '__copyright__', ]
+
+
+# bool: print the PyChecker parse of modules, classes, etc.
+printParse = 0
+
+# bool: turn debugging of PyChecker on
+debug = 0
+
+# bool: check that attributes of objects exist
+checkObjectAttrs = 1
+
+# bool: various warnings about incorrect usage of __slots__
+slots = 1
+
+# bool: check if __slots__ is empty
+emptySlots = 1
+
+# bool: check for using properties in classic classes
+classicProperties = 1
+
+# bool: check for integer division (may be problem between Python versions)
+intDivide = 1
+
+# bool: check if local variables shadow a global variable with same name
+shadows = 1
+
+# bool: check if local variables shadow a builtin variable with same name
+shadowBuiltins = 1
+
+# bool: check if input() is used, which is a security problem, use raw_input()
+usesInput = 1
+
+# bool: check if using a constant string to getattr()/setattr()
+constAttr = 1
+
+# bool: check for using +variable, since it is almost always has no effect
+unaryPositive = 1
+
+# bool: check for modifying a parameter with a default value
+#       (value must be: list, dict, instance)
+#       modifying the value may have undesirable/unexpected side-effects
+modifyDefaultValue = 1
+
+# bool: check if the exec statement is used (possible security problem)
+usesExec = 0
+
+# bool: check consistent return values
+checkReturnValues = 1
+
+# bool: check if using implict and explicit return values
+checkImplicitReturns = 1
+
+# dict: suppress warnings, key is module.class.method or module.function
+#	value is a string of command line arguments (can omit -- for long args)
+#       { 'module1': 'no-namedargs maxlines=0',
+#	  'module2.my_func': 'argsused',
+#	  'module3.my_class': 'no-initreturn', }
+suppressions = {}
+
+# dict: suppress warnings where keys can be regular expressions
+suppressionRegexs = {}
+

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/setup.cfg
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/setup.cfg b/tools/bin/pythonSrc/pychecker-0.8.18/setup.cfg
new file mode 100644
index 0000000..66a10eb
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/setup.cfg
@@ -0,0 +1,8 @@
+[bdist_rpm]
+doc_files = README ChangeLog COPYRIGHT KNOWN_BUGS MAINTAINERS NEWS
+	pycheckrc TODO
+
+# adding this so that bdist_rpm does not complain about installed but
+# unpackaged .pyo files
+[install]
+optimize = 1

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/setup.py
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/setup.py b/tools/bin/pythonSrc/pychecker-0.8.18/setup.py
new file mode 100644
index 0000000..8250df9
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/setup.py
@@ -0,0 +1,281 @@
+#!/usr/bin/env python
+# -*- coding: iso-8859-1 -*-
+
+"""
+Python distutils setup script for pychecker.
+
+This code was originally contributed by Nicolas Chauvat, and has been rewritten
+to generalize it so it works properly with --prefix and other distutils
+options.
+
+This install script needs to customize two distutils behaviors: it needs to
+install the documentation to the configured package install directory, and it
+needs to create a pychecker (or pychecker.bat) script containing the correct
+path to the installed checker.py module and the Python interpreter.
+
+Nicolas' original attempt at this worked fine in the normal case (i.e. a root
+user install).  However, because it assumed that the package directory was
+always within sysconfig.get_python_lib(), it broke when users wanted to specify
+a prefix or a home directory install to, etc.
+
+After some research, I've decided that the best way to make this work is to
+customize (override) some of the distutils action classes.  This way, we get
+access to the distutils configuration and can "do the right thing" when options
+are specified.  
+
+@author: Kenneth J. Pronovici <pronovic@ieee.org>, after Nicolas Chauvat.
+"""
+
+###################
+# Imported modules
+###################
+
+import sys
+import os
+from distutils import core
+from distutils.util import execute
+from distutils.command.bdist import bdist
+from distutils.command.bdist_dumb import bdist_dumb
+from distutils.command.bdist_rpm import bdist_rpm
+from distutils.command.bdist_wininst import bdist_wininst
+from distutils.command.install_data import install_data
+from distutils.command.install_scripts import install_scripts
+from distutils.command.build_scripts import build_scripts
+
+
+###############################
+# Overridden distutils actions
+###############################
+
+using_bdist = 0   # assume we're not using bdist
+
+class my_bdist(bdist):
+   """Customized action which flags that a binary distribution is being produced."""
+   def run(self):
+      global using_bdist
+      using_bdist = 1
+      bdist.run(self)
+
+class my_bdist_dumb(bdist_dumb):
+   """Customized action which flags that a binary distribution is being produced."""
+   def run(self):
+      global using_bdist
+      using_bdist = 1
+      bdist_dumb.run(self)
+
+class my_bdist_rpm(bdist_rpm):
+   """Customized action which flags that a binary distribution is being produced."""
+   def run(self):
+      global using_bdist
+      using_bdist = 1
+      bdist_rpm.run(self)
+
+class my_bdist_wininst(bdist_wininst):
+   """Customized action which flags that a binary distribution is being produced."""
+   def run(self):
+      global using_bdist
+      using_bdist = 1
+      bdist_wininst.run(self)
+
+class my_install_data(install_data):
+   """
+   Customized install_data distutils action.
+
+   This customized action forces all data files to all be installed relative to
+   the normal library install directory (within site-packages) rather than in
+   the standard location.
+
+   This action does not obey any --install-data flag that the user specifies.
+   Distutils apparently does not provide a way to tell whether the install data
+   directory on the Distribution class is "standard" or has already been
+   overrwritten.  This means that we don't have a way to say "change this only
+   if it hasn't been changed already".  All we can do is override the location
+   all of the time.
+
+   Note: If you want your files to go in the "pychecker" package directory,
+   make sure that you specify "pychecker" as the prefix in the setup target.
+   """
+   def finalize_options(self):
+      self.set_undefined_options('install', ('install_lib', 'install_dir'))
+      install_data.finalize_options(self) # invoke "standard" action
+
+class my_install_scripts(install_scripts):
+   """
+   Customized install_scripts distutils action.
+
+   This customized action fills in the pychecker script (either Windows or
+   shell style, depending on platform) using the proper path to the checker.py
+   file and Python interpreter.  This all is done through the execute() method,
+   so that the action obeys the --dry-run flag, etc.  
+
+   The pychecker script must be built here, in the install action, because the
+   proper path to checker.py cannot be known before this point.
+
+   If this action is invoked directly from the command-line, it won't have
+   access to certain configuration, such as the list of scripts.  Instead of
+   trying to work around all that (it's a pain), I've just disallowed the
+   action if it doesn't have the information it needs.
+
+   We have some special behavior around binary distributions.  If we're
+   building a binary distibution, then we don't try to figure out where
+   checker.py will be installed "for real".  We just assume it will be put in
+   the standard site-packages location.
+   """
+   def run(self):
+      global using_bdist
+      if not using_bdist:
+         install_lib = self.distribution.get_command_obj("install").install_lib
+      else:
+         install_lib = get_site_packages_path()
+      scripts = self.distribution.get_command_obj("build_scripts").scripts
+      if install_lib is None or scripts is None or self.build_dir is None:
+         print "note: install_scripts can only be invoked by install"
+      else:
+         script_path = get_script_path(self.build_dir)
+         if script_path in scripts:
+            package_path = os.path.join(install_lib, "pychecker")
+            # if a staging root is used, we don't want that path to end up
+            # in the install_lib path
+            root = self.distribution.get_command_obj("install").root
+            if root:
+               package_path = package_path[len(root):]
+            self.execute(func=create_script, 
+                         args=[script_path, package_path], 
+                         msg="filling in script %s" % script_path)
+         install_scripts.run(self) # invoke "standard" action
+
+class my_build_scripts(build_scripts):
+   """
+   Customized build_scripts distutils action.
+
+   This action looks through the configured scripts list, and if "pychecker" is
+   in the list, replaces that entry with the real name of the script to be
+   created within the build directory (including the .bat extension if needed).
+   Then, it creates an empty script file at that path to make distutils happy.
+   This is all done through the execute() method, so that the action obeys the
+   --dry-run flag, etc.
+
+   It might be surprising that we don't fill in the pychecker script here.
+   This is because in order to fill in the script, we need to know the
+   installed location of checker.py.  This information isn't available until
+   the install action is executed.
+
+   This action completely ignores any scripts other than "pychecker" which are
+   listed in the setup configuration, and it only does anything if "pychecker"
+   is listed in the first place.  This way, new scripts with constant contents
+   (if any) can be added to the setup configuration without writing any new
+   code.  It also helps OS package maintainers (like for the Debian package)
+   because they can still avoid installing scripts just by commenting out the
+   scripts line in configuration, just like usual.
+   """
+   def run(self):
+      if self.scripts is not None and "pychecker" in self.scripts:
+         script_path = get_script_path(self.build_dir)
+         self.scripts.remove("pychecker")
+         self.scripts.append(script_path)
+         self.mkpath(self.build_dir)
+         self.execute(func=open, args=[script_path, "w"], msg="creating empty script %s" % script_path)
+      build_scripts.run(self) # invoke "standard" action
+
+def get_script_path(build_dir):
+   """
+   Returns the platform-specific path to the pychecker script within the build dir.
+   """
+   if sys.platform == "win32":
+      return os.path.join(build_dir, "pychecker.bat")
+   else:
+      return os.path.join(build_dir, "pychecker")
+
+def get_site_packages_path():
+   """
+   Returns the platform-specific location of the site-packages directory.
+   This directory is usually something like /usr/share/python2.3/site-packages
+   on UNIX platforms and /Python23/Lib/site-packages on Windows platforms.
+   """
+   if sys.platform.lower().startswith('win'):
+      return os.path.join(sys.prefix, "Lib", "site-packages")
+   else:
+      return os.path.join(sys.prefix, "lib", 
+                          "python%s" % sys.version[:3], 
+                          "site-packages")
+
+def create_script(script_path, package_path):
+   """
+   Creates the pychecker script at the indicated path.
+
+   The pychecker script will be created to point to checker.py in the package
+   directory, using the Python executable specified in sys.executable.  If the
+   platform is Windows, a batch-style script will be created.  Otherwise, a
+   Bourne-shell script will be created.  Note that we don't worry about what
+   permissions mode the created file will have because the distutils install
+   process takes care of that for us.
+
+   @param script_path: Path to the script to be created
+   @param package_path: Path to the package that checker.py can be found within
+
+   @raise Exception: If script cannot be created on disk.
+   """
+   try:
+      checker_path = os.path.join(package_path, "checker.py")
+      if sys.platform == "win32":
+         script_str = "%s %s %%*\n" % (sys.executable, checker_path)
+      else:
+         script_str = '#! /bin/sh\n\n%s %s "$@"\n' % (sys.executable, checker_path)
+      open(script_path, "w").write(script_str)
+   except Exception, e:
+      print "ERROR: Unable to create %s: %s" % (script_path, e)
+      raise e
+
+
+######################
+# Setup configuration
+######################
+
+CUSTOMIZED_ACTIONS = { 'build_scripts'  : my_build_scripts, 
+                       'install_scripts': my_install_scripts, 
+                       'install_data'   : my_install_data,
+                       'bdist'          : my_bdist,
+                       'bdist_dumb'     : my_bdist_dumb,
+                       'bdist_rpm'      : my_bdist_rpm,
+                       'bdist_wininst'  : my_bdist_wininst,
+                     }
+
+DATA_FILES = [ 'COPYRIGHT', 'README', 'VERSION', 'ChangeLog', 'NEWS', 
+                'KNOWN_BUGS', 'MAINTAINERS', 'TODO', 
+             ]
+
+LONG_DESCRIPTION = """
+PyChecker is a tool for finding bugs in python source code.  It finds problems
+that are typically caught by a compiler for less dynamic languages, like C and
+C++. Because of the dynamic nature of Python, some warnings may be incorrect;
+however, spurious warnings should be fairly infrequent.
+"""
+
+kw =  { 'name'             : "PyChecker",
+        'version'          : "0.8.18",
+        'license'          : "BSD-like",
+        'description'      : "Python source code checking tool",
+        'author'           : "Neal Norwitz",
+        'author_email'     : "nnorwitz@gmail.com",
+        'url'              : "http://pychecker.sourceforge.net/",
+        'packages'         : [ 'pychecker', ],
+        'scripts'          : [ "pychecker" ],   # note: will be replaced by customized action
+        'data_files'       : [ ( "pychecker", DATA_FILES, ) ], 
+        'long_description' : LONG_DESCRIPTION,
+        'cmdclass'         : CUSTOMIZED_ACTIONS, 
+      }
+
+if hasattr(core, 'setup_keywords') and 'classifiers' in core.setup_keywords:
+   kw['classifiers'] =  [ 'Development Status :: 4 - Beta',
+                          'Environment :: Console',
+                          'Intended Audience :: Developers',
+                          'License :: OSI Approved :: BSD License',
+                          'Operating System :: OS Independent',
+                          'Programming Language :: Python',
+                          'Topic :: Software Development :: Debuggers',
+                          'Topic :: Software Development :: Quality Assurance',
+                          'Topic :: Software Development :: Testing',
+                        ]
+
+if __name__ == '__main__' :
+   core.setup(**kw)

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test/common.py
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test/common.py b/tools/bin/pythonSrc/pychecker-0.8.18/test/common.py
new file mode 100644
index 0000000..a2b1afd
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test/common.py
@@ -0,0 +1,88 @@
+# -*- Mode: Python -*-
+# vi:si:et:sw=4:sts=4:ts=4
+
+import os
+import commands
+import unittest
+
+def canImport(module):
+    '''
+    Check if we can import the given module name.
+
+    @type module: str
+
+    @rtype: bool
+    '''
+    try:
+        __import__(module)
+        return True
+    except ImportError:
+        return False
+
+# lifted from flumotion with permission
+def _diff(old, new, desc):
+    import difflib
+    lines = difflib.unified_diff(old, new)
+    lines = list(lines)
+    if not lines:
+        return
+    output = ''
+    for line in lines:
+        output += '%s: %s\n' % (desc, line[:-1])
+
+    raise AssertionError(
+        ("\nError while comparing strings:\n"
+         "%s") % (output,))
+
+def diffStrings(orig, new, desc='input'):
+    def tolines(s):
+        return [line + '\n' for line in s.split('\n')]
+
+    return _diff(tolines(orig), tolines(new), desc=desc)
+
+
+# our base class for all tests
+class TestCase(unittest.TestCase):
+    def check(self, testname, args=''):
+        """
+        Run pychecker on the given test, located in input/
+        Will compare to output of the same name in expected/
+        """
+        return self.checkMultiple(testname, [testname + '.py'], args)
+
+    def checkMultiple(self, testname, checkables, args=''):
+        """
+        Run pychecker on the given test, located in input/
+        Will compare to output of the same name in expected/
+
+        @type checkables: list of str
+        """
+        testdir = os.path.dirname(__file__)
+        # make this relative to where we are, so paths shown are relative too
+        if testdir.startswith(os.getcwd()):
+            testdir = testdir[len(os.getcwd()) + 1:]
+
+        pycheckerpy = os.path.join(os.path.dirname(testdir),
+            'pychecker', 'checker.py')
+        testfiles = [os.path.join(testdir, 'input', c) for c in checkables]
+
+        cmd = "python -tt %s " \
+            "--limit 0 --no-argsused " \
+            "%s %s" % (pycheckerpy, args, " ".join(testfiles))
+        # getoutput output never ends on a newline the way
+        # pychecker ... > expected/... would
+        output = commands.getoutput(cmd) + '\n'
+        
+        # here we can select a different file based on os/python version/arch
+        expectedfile = os.path.join(testdir, 'expected', testname)
+
+        # FIXME: make generating an option
+        # for now, do it every time we don't have the expected output
+        # to help us
+        if not os.path.exists(expectedfile):
+            open(expectedfile, 'w').write(output)
+
+        expected = open(expectedfile).read()
+
+        diffStrings(output, expected, desc=expectedfile)
+

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test/expected/test_getmodule
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test/expected/test_getmodule b/tools/bin/pythonSrc/pychecker-0.8.18/test/expected/test_getmodule
new file mode 100644
index 0000000..68de65c
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test/expected/test_getmodule
@@ -0,0 +1,8 @@
+Processing module C (test/input/getmodule/A/C.py)...
+Processing module C (test/input/getmodule/B/C.py)...
+
+Warnings...
+
+test/input/getmodule/A/C.py:4: Imported module (time) not used
+
+test/input/getmodule/B/C.py:4: Imported module (os) not used

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test/expected/test_zope_interface
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test/expected/test_zope_interface b/tools/bin/pythonSrc/pychecker-0.8.18/test/expected/test_zope_interface
new file mode 100644
index 0000000..ecde326
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test/expected/test_zope_interface
@@ -0,0 +1,5 @@
+Processing module test_zope_interface (test/input/test_zope_interface.py)...
+
+Warnings...
+
+None

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test/input/getmodule/A/C.py
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test/input/getmodule/A/C.py b/tools/bin/pythonSrc/pychecker-0.8.18/test/input/getmodule/A/C.py
new file mode 100644
index 0000000..11fff15
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test/input/getmodule/A/C.py
@@ -0,0 +1,4 @@
+# -*- Mode: Python -*-
+# vi:si:et:sw=4:sts=4:ts=4
+
+import time

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test/input/getmodule/A/__init__.py
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test/input/getmodule/A/__init__.py b/tools/bin/pythonSrc/pychecker-0.8.18/test/input/getmodule/A/__init__.py
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test/input/getmodule/B/C.py
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test/input/getmodule/B/C.py b/tools/bin/pythonSrc/pychecker-0.8.18/test/input/getmodule/B/C.py
new file mode 100644
index 0000000..59fdef3
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test/input/getmodule/B/C.py
@@ -0,0 +1,4 @@
+# -*- Mode: Python -*-
+# vi:si:et:sw=4:sts=4:ts=4
+
+import os

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test/input/getmodule/B/__init__.py
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test/input/getmodule/B/__init__.py b/tools/bin/pythonSrc/pychecker-0.8.18/test/input/getmodule/B/__init__.py
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test/input/getmodule/__init__.py
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test/input/getmodule/__init__.py b/tools/bin/pythonSrc/pychecker-0.8.18/test/input/getmodule/__init__.py
new file mode 100644
index 0000000..3a324eb
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test/input/getmodule/__init__.py
@@ -0,0 +1 @@
+'d'

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test/input/test_getmodule.py
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test/input/test_getmodule.py b/tools/bin/pythonSrc/pychecker-0.8.18/test/input/test_getmodule.py
new file mode 100644
index 0000000..2d3118a
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test/input/test_getmodule.py
@@ -0,0 +1,5 @@
+# -*- Mode: Python -*-
+# vi:si:et:sw=4:sts=4:ts=4
+
+from getmodule.A import C as one
+from getmodule.B import C as two

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test/input/test_zope_interface.py
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test/input/test_zope_interface.py b/tools/bin/pythonSrc/pychecker-0.8.18/test/input/test_zope_interface.py
new file mode 100644
index 0000000..8d2717f
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test/input/test_zope_interface.py
@@ -0,0 +1,4 @@
+# -*- Mode: Python -*-
+# vi:si:et:sw=4:sts=4:ts=4
+
+from zope.interface import Interface

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test/main.py
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test/main.py b/tools/bin/pythonSrc/pychecker-0.8.18/test/main.py
new file mode 100644
index 0000000..10d2389
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test/main.py
@@ -0,0 +1,13 @@
+# -*- Mode: Python -*-
+# vi:si:et:sw=4:sts=4:ts=4
+
+# import all TestCase from all test modules
+# FIXME: we could autodiscovery all test_ modules
+# note: this means all TestCase classes need a different name, might
+# be a problem if one shadows another accidentally ?
+
+from test_stdlib import *
+from test_module import *
+
+if __name__ == '__main__':
+    unittest.main()

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test/test_module.py
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test/test_module.py b/tools/bin/pythonSrc/pychecker-0.8.18/test/test_module.py
new file mode 100644
index 0000000..d57c7c6
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test/test_module.py
@@ -0,0 +1,22 @@
+# -*- Mode: Python -*-
+# vi:si:et:sw=4:sts=4:ts=4
+
+'''
+Tests related to modules.
+'''
+
+import unittest
+import common
+
+class SameModuleNameTestCase(common.TestCase):
+    '''
+    Test that modules with the same name do not shadow eachother.
+    '''
+    def test_getmodule(self):
+        self.checkMultiple('test_getmodule', [
+            'getmodule/A/C.py',
+            'getmodule/B/C.py',
+            ])
+    
+if __name__ == '__main__':
+    unittest.main()

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test/test_stdlib.py
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test/test_stdlib.py b/tools/bin/pythonSrc/pychecker-0.8.18/test/test_stdlib.py
new file mode 100644
index 0000000..d9cb89d
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test/test_stdlib.py
@@ -0,0 +1,25 @@
+# -*- Mode: Python -*-
+# vi:si:et:sw=4:sts=4:ts=4
+
+'''
+Tests related to the -q/--stdlib option.
+'''
+
+import unittest
+import common
+
+class ZopeTestCase(common.TestCase):
+    '''
+    test that -q properly ignores errors for modules in the arch-specific
+    directory.
+
+    See http://sourceforge.net/tracker/index.php?func=detail&aid=1564614&group_id=24686&atid=382217
+    '''
+    def test_zope_interface(self):
+        if not common.canImport('zope.interface'):
+            self.skip = True # FIXME: interpret this
+
+        self.check('test_zope_interface', '-q')
+    
+if __name__ == '__main__':
+    unittest.main()

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_check.sh
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_check.sh b/tools/bin/pythonSrc/pychecker-0.8.18/test_check.sh
new file mode 100755
index 0000000..6bc71a5
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_check.sh
@@ -0,0 +1,69 @@
+#!/bin/sh
+
+TESTS="test_input/test[1-9]*.py"
+# comment out to use python from path
+#PYTHON="python2"
+#PYTHON="$HOME/build/python/2_3/python"
+#PYTHON="$PYTHON -tt coverage.py -x"
+#PYTHON="/usr/bin/python2.3"
+
+if [ "$PYTHON" = "" ]; then
+    PYTHON=python
+fi
+
+if [ $# -gt 0 ]; then
+    TESTS=""
+    for arg in $* ; do
+        TESTS="$TESTS test_input/test${arg}.py"
+    done
+fi
+
+if [ -z "$TMP" ]; then
+    TMP=/tmp
+fi
+
+error=0
+
+VERSION=`$PYTHON -c "import sys ; print '%d.%d' % sys.version_info[0:2]"`
+FAILED=""
+NO_EXPECTED_RESULTS=""
+for test_file in $TESTS ; do
+    echo "Testing $test_file ..."
+    test_name=`basename $test_file .py`
+    expected=test_expected/$test_name
+    if [ -e ${expected}-$VERSION ]; then
+        expected=${expected}-$VERSION
+    elif [ ! -e $expected ]; then
+        echo "  WARNING:  $expected expected results does not exist"
+        NO_EXPECTED_RESULTS="$NO_EXPECTED_RESULTS $test_name"
+        continue
+    fi
+
+    # make sure to use the -F option for this special test
+    extra_args=""
+    if [ "$test_file" = "test_input/test39.py" ]; then
+        extra_args="-F test_input/pycheckrc"
+    fi
+
+    test_path=$TMP/$test_name
+    $PYTHON -tt ./pychecker/checker.py --limit 0 --moduledoc --classdoc --no-argsused $extra_args $test_file 2>&1 | egrep -v '\[[0-9]+ refs\]$' > $test_path
+    diff $test_path $expected
+    if [ $? -ne 0 ]; then
+        error=`expr $error + 1`
+        echo "  $test_name FAILED"
+        FAILED="$FAILED $test_name"
+    fi
+    rm -f $test_path
+done
+
+if [ $error -ne 0 ]; then
+    echo ""
+    echo "$errors TESTS FAILED: $FAILED"
+else
+    echo "ALL TESTS PASSED"
+fi
+
+if [ "$NO_EXPECTED_RESULTS" != "" ]; then
+    echo " WARNING no expected results for: $NO_EXPECTED_RESULTS"
+fi
+

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1
new file mode 100644
index 0000000..e34874d
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1
@@ -0,0 +1,35 @@
+Processing module test1 (test_input/test1.py)...
+test_input/test1.py:67: SyntaxWarning: local name 'b' in 'test_kw_lambda' shadows use of 'b' as global in nested scope 'lambda'
+  def test_kw_lambda(a, b, c):
+
+Warnings...
+
+test_input/test1.py:1: No module doc string
+test_input/test1.py:2: Imported module (imp) not used
+test_input/test1.py:3: Imported module (re) not used
+test_input/test1.py:5: Variable (_NOT_USED1) not used
+test_input/test1.py:10: Local variable (m) not used
+test_input/test1.py:10: No global (unknownList) found
+test_input/test1.py:13: self is argument in function
+test_input/test1.py:21: Invalid arguments to (jjj2), got 0, expected between 1 and 3
+test_input/test1.py:25: Invalid arguments to (jjj2), got 4, expected between 1 and 3
+test_input/test1.py:28: Invalid arguments to (ddd), got 0, expected at least 1
+test_input/test1.py:34: No doc string for class X
+test_input/test1.py:34: No doc string for class Y
+test_input/test1.py:35: No global (sys) found
+test_input/test1.py:36: No class attribute (__x__) found
+test_input/test1.py:36: No class attribute (x) found
+test_input/test1.py:39: self is not first method argument
+test_input/test1.py:40: No global (nofunc) found
+test_input/test1.py:41: Local variable (i) not used
+test_input/test1.py:41: No class attribute (a) found
+test_input/test1.py:41: No global (self) found
+test_input/test1.py:42: Function (jjj) doesn't support **kwArgs
+test_input/test1.py:42: Invalid arguments to (jjj), got 3, expected 1
+test_input/test1.py:46: Local variable (asdf) not used
+test_input/test1.py:48: Local variable (j) not used
+test_input/test1.py:48: No global (jjjj) found
+test_input/test1.py:50: No class attribute (z) found
+test_input/test1.py:54: Invalid arguments to (xxx), got 2, expected 1
+test_input/test1.py:70: (str) shadows builtin
+test_input/test1.py:75: Function (append) doesn't support **kwArgs

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1-2.3
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1-2.3 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1-2.3
new file mode 100644
index 0000000..a822a83
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1-2.3
@@ -0,0 +1,33 @@
+Processing module test1 (test_input/test1.py)...
+
+Warnings...
+
+test_input/test1.py:1: No module doc string
+test_input/test1.py:2: Imported module (imp) not used
+test_input/test1.py:3: Imported module (re) not used
+test_input/test1.py:5: Variable (_NOT_USED1) not used
+test_input/test1.py:10: Local variable (m) not used
+test_input/test1.py:10: No global (unknownList) found
+test_input/test1.py:13: self is argument in function
+test_input/test1.py:21: Invalid arguments to (jjj2), got 0, expected between 1 and 3
+test_input/test1.py:25: Invalid arguments to (jjj2), got 4, expected between 1 and 3
+test_input/test1.py:28: Invalid arguments to (ddd), got 0, expected at least 1
+test_input/test1.py:34: No doc string for class X
+test_input/test1.py:34: No doc string for class Y
+test_input/test1.py:35: No global (sys) found
+test_input/test1.py:36: No class attribute (__x__) found
+test_input/test1.py:36: No class attribute (x) found
+test_input/test1.py:39: self is not first method argument
+test_input/test1.py:40: No global (nofunc) found
+test_input/test1.py:41: Local variable (i) not used
+test_input/test1.py:41: No class attribute (a) found
+test_input/test1.py:41: No global (self) found
+test_input/test1.py:42: Function (jjj) doesn't support **kwArgs
+test_input/test1.py:42: Invalid arguments to (jjj), got 3, expected 1
+test_input/test1.py:46: Local variable (asdf) not used
+test_input/test1.py:48: Local variable (j) not used
+test_input/test1.py:48: No global (jjjj) found
+test_input/test1.py:50: No class attribute (z) found
+test_input/test1.py:54: Invalid arguments to (xxx), got 2, expected 1
+test_input/test1.py:70: (str) shadows builtin
+test_input/test1.py:75: Function (append) doesn't support **kwArgs

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1-2.4
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1-2.4 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1-2.4
new file mode 100644
index 0000000..a822a83
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1-2.4
@@ -0,0 +1,33 @@
+Processing module test1 (test_input/test1.py)...
+
+Warnings...
+
+test_input/test1.py:1: No module doc string
+test_input/test1.py:2: Imported module (imp) not used
+test_input/test1.py:3: Imported module (re) not used
+test_input/test1.py:5: Variable (_NOT_USED1) not used
+test_input/test1.py:10: Local variable (m) not used
+test_input/test1.py:10: No global (unknownList) found
+test_input/test1.py:13: self is argument in function
+test_input/test1.py:21: Invalid arguments to (jjj2), got 0, expected between 1 and 3
+test_input/test1.py:25: Invalid arguments to (jjj2), got 4, expected between 1 and 3
+test_input/test1.py:28: Invalid arguments to (ddd), got 0, expected at least 1
+test_input/test1.py:34: No doc string for class X
+test_input/test1.py:34: No doc string for class Y
+test_input/test1.py:35: No global (sys) found
+test_input/test1.py:36: No class attribute (__x__) found
+test_input/test1.py:36: No class attribute (x) found
+test_input/test1.py:39: self is not first method argument
+test_input/test1.py:40: No global (nofunc) found
+test_input/test1.py:41: Local variable (i) not used
+test_input/test1.py:41: No class attribute (a) found
+test_input/test1.py:41: No global (self) found
+test_input/test1.py:42: Function (jjj) doesn't support **kwArgs
+test_input/test1.py:42: Invalid arguments to (jjj), got 3, expected 1
+test_input/test1.py:46: Local variable (asdf) not used
+test_input/test1.py:48: Local variable (j) not used
+test_input/test1.py:48: No global (jjjj) found
+test_input/test1.py:50: No class attribute (z) found
+test_input/test1.py:54: Invalid arguments to (xxx), got 2, expected 1
+test_input/test1.py:70: (str) shadows builtin
+test_input/test1.py:75: Function (append) doesn't support **kwArgs

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1-2.5
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1-2.5 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1-2.5
new file mode 100644
index 0000000..a822a83
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1-2.5
@@ -0,0 +1,33 @@
+Processing module test1 (test_input/test1.py)...
+
+Warnings...
+
+test_input/test1.py:1: No module doc string
+test_input/test1.py:2: Imported module (imp) not used
+test_input/test1.py:3: Imported module (re) not used
+test_input/test1.py:5: Variable (_NOT_USED1) not used
+test_input/test1.py:10: Local variable (m) not used
+test_input/test1.py:10: No global (unknownList) found
+test_input/test1.py:13: self is argument in function
+test_input/test1.py:21: Invalid arguments to (jjj2), got 0, expected between 1 and 3
+test_input/test1.py:25: Invalid arguments to (jjj2), got 4, expected between 1 and 3
+test_input/test1.py:28: Invalid arguments to (ddd), got 0, expected at least 1
+test_input/test1.py:34: No doc string for class X
+test_input/test1.py:34: No doc string for class Y
+test_input/test1.py:35: No global (sys) found
+test_input/test1.py:36: No class attribute (__x__) found
+test_input/test1.py:36: No class attribute (x) found
+test_input/test1.py:39: self is not first method argument
+test_input/test1.py:40: No global (nofunc) found
+test_input/test1.py:41: Local variable (i) not used
+test_input/test1.py:41: No class attribute (a) found
+test_input/test1.py:41: No global (self) found
+test_input/test1.py:42: Function (jjj) doesn't support **kwArgs
+test_input/test1.py:42: Invalid arguments to (jjj), got 3, expected 1
+test_input/test1.py:46: Local variable (asdf) not used
+test_input/test1.py:48: Local variable (j) not used
+test_input/test1.py:48: No global (jjjj) found
+test_input/test1.py:50: No class attribute (z) found
+test_input/test1.py:54: Invalid arguments to (xxx), got 2, expected 1
+test_input/test1.py:70: (str) shadows builtin
+test_input/test1.py:75: Function (append) doesn't support **kwArgs

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1-2.6
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1-2.6 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1-2.6
new file mode 100644
index 0000000..a822a83
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test1-2.6
@@ -0,0 +1,33 @@
+Processing module test1 (test_input/test1.py)...
+
+Warnings...
+
+test_input/test1.py:1: No module doc string
+test_input/test1.py:2: Imported module (imp) not used
+test_input/test1.py:3: Imported module (re) not used
+test_input/test1.py:5: Variable (_NOT_USED1) not used
+test_input/test1.py:10: Local variable (m) not used
+test_input/test1.py:10: No global (unknownList) found
+test_input/test1.py:13: self is argument in function
+test_input/test1.py:21: Invalid arguments to (jjj2), got 0, expected between 1 and 3
+test_input/test1.py:25: Invalid arguments to (jjj2), got 4, expected between 1 and 3
+test_input/test1.py:28: Invalid arguments to (ddd), got 0, expected at least 1
+test_input/test1.py:34: No doc string for class X
+test_input/test1.py:34: No doc string for class Y
+test_input/test1.py:35: No global (sys) found
+test_input/test1.py:36: No class attribute (__x__) found
+test_input/test1.py:36: No class attribute (x) found
+test_input/test1.py:39: self is not first method argument
+test_input/test1.py:40: No global (nofunc) found
+test_input/test1.py:41: Local variable (i) not used
+test_input/test1.py:41: No class attribute (a) found
+test_input/test1.py:41: No global (self) found
+test_input/test1.py:42: Function (jjj) doesn't support **kwArgs
+test_input/test1.py:42: Invalid arguments to (jjj), got 3, expected 1
+test_input/test1.py:46: Local variable (asdf) not used
+test_input/test1.py:48: Local variable (j) not used
+test_input/test1.py:48: No global (jjjj) found
+test_input/test1.py:50: No class attribute (z) found
+test_input/test1.py:54: Invalid arguments to (xxx), got 2, expected 1
+test_input/test1.py:70: (str) shadows builtin
+test_input/test1.py:75: Function (append) doesn't support **kwArgs

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test10
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test10 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test10
new file mode 100644
index 0000000..3015d51
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test10
@@ -0,0 +1,5 @@
+Processing module test10 (test_input/test10.py)...
+
+Warnings...
+
+None

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test100
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test100 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test100
new file mode 100644
index 0000000..97411d3
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test100
@@ -0,0 +1,5 @@
+Processing module test100 (test_input/test100.py)...
+
+Warnings...
+
+None

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test101
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test101 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test101
new file mode 100644
index 0000000..93270b1
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test101
@@ -0,0 +1,5 @@
+Processing module test101 (test_input/test101.py)...
+
+Warnings...
+
+None

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test102
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test102 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test102
new file mode 100644
index 0000000..95a20b0
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test102
@@ -0,0 +1,5 @@
+Processing module test102 (test_input/test102.py)...
+
+Warnings...
+
+test_input/test102.py:8: __getattr__ should not return None, raise an exception if not found

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test11
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test11 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test11
new file mode 100644
index 0000000..62ac16c
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test11
@@ -0,0 +1,5 @@
+Processing module test11 (test_input/test11.py)...
+
+Warnings...
+
+None

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test12
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test12 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test12
new file mode 100644
index 0000000..158a259
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test12
@@ -0,0 +1,5 @@
+Processing module test12 (test_input/test12.py)...
+
+Warnings...
+
+None

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test13
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test13 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test13
new file mode 100644
index 0000000..457342a
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test13
@@ -0,0 +1,6 @@
+Processing module test13 (test_input/test13.py)...
+
+Warnings...
+
+test_input/test13.py:12: Global variable (x) not defined in module scope
+test_input/test13.py:29: No global (xxx) found

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test14
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test14 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test14
new file mode 100644
index 0000000..642f595
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test14
@@ -0,0 +1,9 @@
+Processing module test14 (test_input/test14.py)...
+
+Warnings...
+
+test_input/test14.py:4: Module (string) re-imported
+test_input/test14.py:7: Variable (_unused) not used
+test_input/test14.py:10: Local variable (jj) not used
+test_input/test14.py:10: Module (string) re-imported
+test_input/test14.py:18: Variable (_noglobal) not used

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test15
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test15 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test15
new file mode 100644
index 0000000..eb2bf44
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test15
@@ -0,0 +1,8 @@
+Processing module test15 (test_input/test15.py)...
+
+Warnings...
+
+test_input/test15.py:19: Law of Demeter violated, more than 5 references for (obj.x.y.z.a.b)
+test_input/test15.py:20: Law of Demeter violated, more than 5 references for (obj.x.y.z.a.b.c)
+test_input/test15.py:30: Law of Demeter violated, more than 6 references for (self.xx.y.z.a.b)
+test_input/test15.py:38: Law of Demeter violated, more than 6 references for (self.xx.y.z.a.b.c)

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test16
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test16 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test16
new file mode 100644
index 0000000..cb1cc49
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test16
@@ -0,0 +1,5 @@
+Processing module test16 (test_input/test16.py)...
+
+Warnings...
+
+None

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test17
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test17 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test17
new file mode 100644
index 0000000..dcd8e4e
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test17
@@ -0,0 +1,8 @@
+Processing module test17 (test_input/test17.py)...
+
+Warnings...
+
+test_input/test17.py:7: Cannot return a value from __init__
+test_input/test17.py:13: Cannot return a value from __init__
+test_input/test17.py:15: Cannot return a value from __init__
+test_input/test17.py:16: Cannot return a value from __init__

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test17-2.4
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test17-2.4 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test17-2.4
new file mode 100644
index 0000000..ee54569
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test17-2.4
@@ -0,0 +1,7 @@
+Processing module test17 (test_input/test17.py)...
+
+Warnings...
+
+test_input/test17.py:7: Cannot return a value from __init__
+test_input/test17.py:13: Cannot return a value from __init__
+test_input/test17.py:15: Cannot return a value from __init__

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test18
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test18 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test18
new file mode 100644
index 0000000..7446046
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test18
@@ -0,0 +1,16 @@
+Processing module test18 (test_input/test18.py)...
+
+Warnings...
+
+test_input/test18.py:21: Invalid arguments to (__init__), got 1, expected 0
+test_input/test18.py:23: Invalid arguments to (__init__), got 0, expected 1
+test_input/test18.py:25: Invalid arguments to (__init__), got 2, expected 1
+test_input/test18.py:26: Invalid arguments to (__init__), got 3, expected 1
+test_input/test18.py:27: Invalid arguments to (__init__), got 4, expected 1
+test_input/test18.py:29: Invalid arguments to (__init__), got 0, expected 3
+test_input/test18.py:30: Invalid arguments to (__init__), got 1, expected 3
+test_input/test18.py:31: Invalid arguments to (__init__), got 2, expected 3
+test_input/test18.py:33: Invalid arguments to (__init__), got 4, expected 3
+test_input/test18.py:35: Invalid arguments to (__init__), got 0, expected at least 3
+test_input/test18.py:36: Invalid arguments to (__init__), got 1, expected at least 3
+test_input/test18.py:37: Invalid arguments to (__init__), got 2, expected at least 3

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test19
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test19 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test19
new file mode 100644
index 0000000..449ad40
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test19
@@ -0,0 +1,6 @@
+Processing module test19 (test_input/test19.py)...
+
+Warnings...
+
+test_input/test19.py:8: Invalid arguments to (__init__), got 2, expected between 0 and 1
+test_input/test19.py:9: Invalid arguments to (__init__), got 3, expected between 0 and 1

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test2
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test2 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test2
new file mode 100644
index 0000000..3b25b9d
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test2
@@ -0,0 +1,8 @@
+Processing module test2 (test_input/test2.py)...
+
+Warnings...
+
+test_input/test2.py:4: Imported module (time) not used
+test_input/test2.py:9: No doc string for class X
+test_input/test2.py:16: Base class (test2.X) __init__() not called
+test_input/test2.py:16: No doc string for class Y

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test20
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test20 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test20
new file mode 100644
index 0000000..1977854
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test20
@@ -0,0 +1,7 @@
+Processing module test20 (test_input/test20.py)...
+
+Warnings...
+
+test_input/test20.py:11: Function returns a value and also implicitly returns None
+test_input/test20.py:21: Function return types are inconsistent
+test_input/test20.py:40: Function return types are inconsistent

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test20-2.4
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test20-2.4 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test20-2.4
new file mode 100644
index 0000000..adab540
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test20-2.4
@@ -0,0 +1,6 @@
+Processing module test20 (test_input/test20.py)...
+
+Warnings...
+
+test_input/test20.py:21: Function return types are inconsistent
+test_input/test20.py:40: Function return types are inconsistent

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test20-2.5
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test20-2.5 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test20-2.5
new file mode 100644
index 0000000..adab540
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test20-2.5
@@ -0,0 +1,6 @@
+Processing module test20 (test_input/test20.py)...
+
+Warnings...
+
+test_input/test20.py:21: Function return types are inconsistent
+test_input/test20.py:40: Function return types are inconsistent

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test20-2.6
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test20-2.6 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test20-2.6
new file mode 100644
index 0000000..adab540
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test20-2.6
@@ -0,0 +1,6 @@
+Processing module test20 (test_input/test20.py)...
+
+Warnings...
+
+test_input/test20.py:21: Function return types are inconsistent
+test_input/test20.py:40: Function return types are inconsistent

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test21
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test21 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test21
new file mode 100644
index 0000000..6d598b8
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test21
@@ -0,0 +1,7 @@
+Processing module test21 (test_input/test21.py)...
+
+Warnings...
+
+test_input/test21.py:9: Function return types are inconsistent
+test_input/test21.py:15: Function return types are inconsistent
+test_input/test21.py:21: Function return types are inconsistent

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test22
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test22 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test22
new file mode 100644
index 0000000..fe21833
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test22
@@ -0,0 +1,33 @@
+Processing module test22 (test_input/test22.py)...
+
+Warnings...
+
+test_input/test22.py:6: Format string argument count (4) doesn't match arguments (3)
+test_input/test22.py:9: Local variable (eee) not used
+test_input/test22.py:10: No local variable (ccc)
+test_input/test22.py:10: No local variable (ddd)
+test_input/test22.py:13: No local variable ()
+test_input/test22.py:15: Invalid format string, problem starts near: '(b) '
+test_input/test22.py:16: Invalid format string, problem starts near: '(b)'
+test_input/test22.py:19: Format string argument count (2) doesn't match arguments (3)
+test_input/test22.py:22: Format string argument count (3) doesn't match arguments (4)
+test_input/test22.py:24: Invalid format string, problem starts near: 'z '
+test_input/test22.py:25: Invalid format string, problem starts near: 'J '
+test_input/test22.py:26: Too many *s in format flags
+test_input/test22.py:28: Can't mix tuple/mapping (dictionary) formats in same format string
+test_input/test22.py:29: Can't use * in formats when using a mapping (dictionary), near: '*d'
+test_input/test22.py:31: Can't use * in formats when using a mapping (dictionary), near: '*.*f'
+test_input/test22.py:34: Format string argument count (3) doesn't match arguments (2)
+test_input/test22.py:40: Format string argument count (2) doesn't match arguments (1)
+test_input/test22.py:42: Format string argument count (2) doesn't match arguments (3)
+test_input/test22.py:46: Format string argument count (1) doesn't match arguments (3)
+test_input/test22.py:51: Format string argument count (1) doesn't match arguments (2)
+test_input/test22.py:65: Format string argument count (2) doesn't match arguments (3)
+test_input/test22.py:66: Format string argument count (3) doesn't match arguments (4)
+test_input/test22.py:67: Format string argument count (4) doesn't match arguments (2)
+test_input/test22.py:70: Local variable (c) not used
+test_input/test22.py:74: Local variable (a) not used
+test_input/test22.py:74: Local variable (b) not used
+test_input/test22.py:79: ... % 1 may be constant
+test_input/test22.py:81: ... % 1 may be constant
+test_input/test22.py:86: Invalid format string, problem starts near: '' (end of format string)

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test23
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test23 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test23
new file mode 100644
index 0000000..237e308
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test23
@@ -0,0 +1,8 @@
+Processing module test23 (test_input/test23.py)...
+
+Warnings...
+
+test_input/test23.py:13: Using method (x) as an attribute (not invoked)
+test_input/test23.py:15: Using method (x) as an attribute (not invoked)
+test_input/test23.py:17: Using method (x) as an attribute (not invoked)
+test_input/test23.py:39: Using method (x) as an attribute (not invoked)

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test24
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test24 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test24
new file mode 100644
index 0000000..5639062
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test24
@@ -0,0 +1,10 @@
+Processing module test24 (test_input/test24.py)...
+
+Warnings...
+
+test_input/import24.py:4: No doc string for class Aaa
+test_input/import24.py:8: Base class (import24.Aaa) __init__() not called
+test_input/import24.py:8: No doc string for class Bbb
+
+test_input/test24.py:8: Invalid arguments to (func24), got 1, expected 0
+test_input/test24.py:11: Local variable (shadow) shadows global defined on line 0 in file <unknown>

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test25
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test25 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test25
new file mode 100644
index 0000000..7277d69
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test25
@@ -0,0 +1,8 @@
+Processing module test25 (test_input/test25.py)...
+
+Warnings...
+
+test_input/test25.py:11: Invalid arguments to (x), got 0, expected 1
+test_input/test25.py:13: No class attribute (a) found
+test_input/test25.py:14: No class attribute (y) found
+test_input/test25.py:15: No module attribute (lkjsdflksjasdlf) found

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test26
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test26 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test26
new file mode 100644
index 0000000..fbed2a5
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test26
@@ -0,0 +1,5 @@
+Processing module test26 (test_input/test26.py)...
+
+Warnings...
+
+None

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27
new file mode 100644
index 0000000..284e831
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27
@@ -0,0 +1,7 @@
+Processing module test27 (test_input/test27.py)...
+test_input/test27.py:12: SyntaxWarning: local name 'string' in 'd' shadows use of 'string' as global in nested scope 'lambda'
+  def d(lines):
+
+Warnings...
+
+None

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.2
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.2 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.2
new file mode 100644
index 0000000..f3b2687
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.2
@@ -0,0 +1,5 @@
+Processing module test27 (test_input/test27.py)...
+
+Warnings...
+
+None

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.3
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.3 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.3
new file mode 100644
index 0000000..f3b2687
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.3
@@ -0,0 +1,5 @@
+Processing module test27 (test_input/test27.py)...
+
+Warnings...
+
+None

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.4
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.4 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.4
new file mode 100644
index 0000000..f3b2687
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.4
@@ -0,0 +1,5 @@
+Processing module test27 (test_input/test27.py)...
+
+Warnings...
+
+None

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.5
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.5 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.5
new file mode 100644
index 0000000..f3b2687
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.5
@@ -0,0 +1,5 @@
+Processing module test27 (test_input/test27.py)...
+
+Warnings...
+
+None

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.6
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.6 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.6
new file mode 100644
index 0000000..f3b2687
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test27-2.6
@@ -0,0 +1,5 @@
+Processing module test27 (test_input/test27.py)...
+
+Warnings...
+
+None

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test28
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test28 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test28
new file mode 100644
index 0000000..021c890
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test28
@@ -0,0 +1,5 @@
+Processing module test28 (test_input/test28.py)...
+
+Warnings...
+
+None

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test29
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test29 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test29
new file mode 100644
index 0000000..5aa02d7
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test29
@@ -0,0 +1,5 @@
+Processing module test29 (test_input/test29.py)...
+
+Warnings...
+
+None

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3
new file mode 100644
index 0000000..03c8bd5
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3
@@ -0,0 +1,8 @@
+Processing module test3 (test_input/test3.py)...
+
+Warnings...
+
+UserDict.py:4: No doc string for class UserDict
+
+test_input/test3.py:7: No global (x) found
+test_input/test3.py:12: No doc string for class jj

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.2
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.2 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.2
new file mode 100644
index 0000000..6684369
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.2
@@ -0,0 +1,8 @@
+Processing module test3 (test_input/test3.py)...
+
+Warnings...
+
+/usr/src/build/228093-i386/install/usr/lib/python2.2/UserDict.py:4: No doc string for class UserDict
+
+test_input/test3.py:7: No global (x) found
+test_input/test3.py:12: No doc string for class jj

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.3
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.3 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.3
new file mode 100644
index 0000000..4587796
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.3
@@ -0,0 +1,9 @@
+Processing module test3 (test_input/test3.py)...
+
+Warnings...
+
+/usr/lib/python2.3/UserDict.py:4: No doc string for class UserDict
+/usr/lib/python2.3/UserDict.py:8: (dict) shadows builtin
+
+test_input/test3.py:7: No global (x) found
+test_input/test3.py:12: No doc string for class jj

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.4
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.4 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.4
new file mode 100644
index 0000000..03c8bd5
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.4
@@ -0,0 +1,8 @@
+Processing module test3 (test_input/test3.py)...
+
+Warnings...
+
+UserDict.py:4: No doc string for class UserDict
+
+test_input/test3.py:7: No global (x) found
+test_input/test3.py:12: No doc string for class jj

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.5
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.5 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.5
new file mode 100644
index 0000000..d9d8f25
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.5
@@ -0,0 +1,8 @@
+Processing module test3 (test_input/test3.py)...
+
+Warnings...
+
+/home/neal/local/lib/python2.5/UserDict.py:4: No doc string for class UserDict
+
+test_input/test3.py:7: No global (x) found
+test_input/test3.py:12: No doc string for class jj

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.6
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.6 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.6
new file mode 100644
index 0000000..3b193d5
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test3-2.6
@@ -0,0 +1,8 @@
+Processing module test3 (test_input/test3.py)...
+
+Warnings...
+
+/home/neal/python/dev/trunk5/Lib/UserDict.py:4: No doc string for class UserDict
+
+test_input/test3.py:7: No global (x) found
+test_input/test3.py:12: No doc string for class jj

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test30
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test30 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test30
new file mode 100644
index 0000000..91d70b8
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test30
@@ -0,0 +1,5 @@
+Processing module test30 (test_input/test30.py)...
+
+Warnings...
+
+None

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test31
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test31 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test31
new file mode 100644
index 0000000..c963ec0
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test31
@@ -0,0 +1,10 @@
+Processing module test31 (test_input/test31.py)...
+
+Warnings...
+
+test_input/test31.py:21: Instantiating an object with arguments, but no constructor
+test_input/test31.py:22: Instantiating an object with arguments, but no constructor
+test_input/test31.py:23: Instantiating an object with arguments, but no constructor
+test_input/test31.py:24: Instantiating an object with arguments, but no constructor
+test_input/test31.py:25: Function (__init__) doesn't support **kwArgs
+test_input/test31.py:26: Invalid arguments to (__init__), got 2, expected 1

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test32
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test32 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test32
new file mode 100644
index 0000000..17921fe
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test32
@@ -0,0 +1,6 @@
+Processing module test32 (test_input/test32.py)...
+
+Warnings...
+
+test_input/test32.py:10: self is not first method argument
+test_input/test32.py:15: Invalid arguments to (__init__), got 0, expected 1

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test33
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test33 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test33
new file mode 100644
index 0000000..de9440e
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test33
@@ -0,0 +1,5 @@
+Processing module test33 (test_input/test33.py)...
+
+Warnings...
+
+test_input/test33.py:4: Variable (j) used before being set

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34
new file mode 100644
index 0000000..ac793a5
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34
@@ -0,0 +1,14 @@
+Processing module test34 (test_input/test34.py)...
+
+Warnings...
+
+getopt.py:25: No doc string for class GetoptError
+
+test_input/test34.py:1: No doc string for class Error
+test_input/test34.py:6: Module member (string) re-imported with *
+test_input/test34.py:9: Using import and from ... import for (locale)
+test_input/test34.py:10: Using import and from ... import for (locale)
+test_input/test34.py:13: Using import and from ... import for (getopt)
+test_input/test34.py:16: Using import and from ... import for (copy)
+test_input/test34.py:19: Module member (from re import sub) re-imported
+test_input/test34.py:22: Module (ihooks) re-imported

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.2
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.2 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.2
new file mode 100644
index 0000000..e6e9bbc
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.2
@@ -0,0 +1,17 @@
+Processing module test34 (test_input/test34.py)...
+
+Warnings...
+
+/usr/lib/python2.2/locale.py:168: (str) shadows builtin
+/usr/lib/python2.2/locale.py:173: (str) shadows builtin
+
+/usr/src/build/228093-i386/install/usr/lib/python2.2/getopt.py:25: No doc string for class GetoptError
+
+test_input/test34.py:1: No doc string for class Error
+test_input/test34.py:6: Module member (string) re-imported with *
+test_input/test34.py:9: Using import and from ... import for (locale)
+test_input/test34.py:10: Using import and from ... import for (locale)
+test_input/test34.py:13: Using import and from ... import for (getopt)
+test_input/test34.py:16: Using import and from ... import for (copy)
+test_input/test34.py:19: Module member (from re import sub) re-imported
+test_input/test34.py:22: Module (ihooks) re-imported

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.3
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.3 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.3
new file mode 100644
index 0000000..4249257
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.3
@@ -0,0 +1,17 @@
+Processing module test34 (test_input/test34.py)...
+
+Warnings...
+
+/usr/lib/python2.3/getopt.py:42: No doc string for class GetoptError
+
+/usr/lib/python2.3/locale.py:168: (str) shadows builtin
+/usr/lib/python2.3/locale.py:173: (str) shadows builtin
+
+test_input/test34.py:1: No doc string for class Error
+test_input/test34.py:6: Module member (string) re-imported with *
+test_input/test34.py:9: Using import and from ... import for (locale)
+test_input/test34.py:10: Using import and from ... import for (locale)
+test_input/test34.py:13: Using import and from ... import for (getopt)
+test_input/test34.py:16: Using import and from ... import for (copy)
+test_input/test34.py:19: Module member (from re import sub) re-imported
+test_input/test34.py:22: Module (ihooks) re-imported

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.4
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.4 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.4
new file mode 100644
index 0000000..cdcf97d
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.4
@@ -0,0 +1,14 @@
+Processing module test34 (test_input/test34.py)...
+
+Warnings...
+
+getopt.py:42: No doc string for class GetoptError
+
+test_input/test34.py:1: No doc string for class Error
+test_input/test34.py:6: Module member (string) re-imported with *
+test_input/test34.py:9: Using import and from ... import for (locale)
+test_input/test34.py:10: Using import and from ... import for (locale)
+test_input/test34.py:13: Using import and from ... import for (getopt)
+test_input/test34.py:16: Using import and from ... import for (copy)
+test_input/test34.py:19: Module member (from re import sub) re-imported
+test_input/test34.py:22: Module (ihooks) re-imported

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.5
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.5 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.5
new file mode 100644
index 0000000..b99da64
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.5
@@ -0,0 +1,14 @@
+Processing module test34 (test_input/test34.py)...
+
+Warnings...
+
+/home/neal/local/lib/python2.5/getopt.py:42: No doc string for class GetoptError
+
+test_input/test34.py:1: No doc string for class Error
+test_input/test34.py:6: Module member (string) re-imported with *
+test_input/test34.py:9: Using import and from ... import for (locale)
+test_input/test34.py:10: Using import and from ... import for (locale)
+test_input/test34.py:13: Using import and from ... import for (getopt)
+test_input/test34.py:16: Using import and from ... import for (copy)
+test_input/test34.py:19: Module member (from re import sub) re-imported
+test_input/test34.py:22: Module (ihooks) re-imported

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.6
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.6 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.6
new file mode 100644
index 0000000..2c135fa
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test34-2.6
@@ -0,0 +1,14 @@
+Processing module test34 (test_input/test34.py)...
+
+Warnings...
+
+/home/neal/python/dev/trunk5/Lib/getopt.py:42: No doc string for class GetoptError
+
+test_input/test34.py:1: No doc string for class Error
+test_input/test34.py:6: Module member (string) re-imported with *
+test_input/test34.py:9: Using import and from ... import for (locale)
+test_input/test34.py:10: Using import and from ... import for (locale)
+test_input/test34.py:13: Using import and from ... import for (getopt)
+test_input/test34.py:16: Using import and from ... import for (copy)
+test_input/test34.py:19: Module member (from re import sub) re-imported
+test_input/test34.py:22: Module (ihooks) re-imported

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test35
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test35 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test35
new file mode 100644
index 0000000..9752b66
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test35
@@ -0,0 +1,6 @@
+Processing module test35 (test_input/test35.py)...
+
+Warnings...
+
+test_input/test35.py:9: No doc string for function x
+test_input/test35.py:11: No doc string for function y

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test36
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test36 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test36
new file mode 100644
index 0000000..eca67ce
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test36
@@ -0,0 +1,7 @@
+Processing module test36 (test_input/test36.py)...
+
+Warnings...
+
+test_input/test36.py:1: No doc string for class NoneType
+test_input/test36.py:31: Function (int) doesn't support **kwArgs for name (args)
+test_input/test36.py:36: [].append() only takes 1 argument in Python 1.6 and above for (n)

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/80e25b46/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test37
----------------------------------------------------------------------
diff --git a/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test37 b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test37
new file mode 100644
index 0000000..e4e31d8
--- /dev/null
+++ b/tools/bin/pythonSrc/pychecker-0.8.18/test_expected/test37
@@ -0,0 +1,5 @@
+Processing module test37 (test_input/test37.py)...
+
+Warnings...
+
+None



Mime
View raw message