diff options
author | Eli Bendersky <eliben@gmail.com> | 2013-08-03 06:07:08 -0700 |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2013-08-03 06:07:08 -0700 |
commit | 8dbd1491cfff6b3b5bfec210b0d6cbf099185602 (patch) | |
tree | d6c44419cab711326c7138413ac6d395e02c6e05 /pycparser | |
parent | febd20be590917df25d108cd3347da9b5a49a852 (diff) | |
download | pycparser-8dbd1491cfff6b3b5bfec210b0d6cbf099185602.tar.gz |
Bump version to 2.10 and do some whitespace cleanups.
Diffstat (limited to 'pycparser')
-rw-r--r-- | pycparser/__init__.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pycparser/__init__.py b/pycparser/__init__.py index ac77aa9..86d1c5c 100644 --- a/pycparser/__init__.py +++ b/pycparser/__init__.py @@ -1,14 +1,14 @@ #----------------------------------------------------------------- # pycparser: __init__.py # -# This package file exports some convenience functions for +# This package file exports some convenience functions for # interacting with pycparser # # Copyright (C) 2008-2012, Eli Bendersky # License: BSD #----------------------------------------------------------------- __all__ = ['c_lexer', 'c_parser', 'c_ast'] -__version__ = '2.09.1' +__version__ = '2.10' from subprocess import Popen, PIPE from .c_parser import CParser @@ -26,12 +26,12 @@ def preprocess_file(filename, cpp_path='cpp', cpp_args=''): arguments. When successful, returns the preprocessed file's contents. - Errors from cpp will be printed out. + Errors from cpp will be printed out. """ path_list = [cpp_path] if isinstance(cpp_args, list): path_list += cpp_args - elif cpp_args != '': + elif cpp_args != '': path_list += [cpp_args] path_list += [filename] @@ -39,8 +39,8 @@ def preprocess_file(filename, cpp_path='cpp', cpp_args=''): # Note the use of universal_newlines to treat all newlines # as \n for Python's purpose # - pipe = Popen( path_list, - stdout=PIPE, + pipe = Popen( path_list, + stdout=PIPE, universal_newlines=True) text = pipe.communicate()[0] except OSError as e: @@ -77,10 +77,10 @@ def parse_file(filename, use_cpp=False, cpp_path='cpp', cpp_args='', parser: Optional parser object to be used instead of the default CParser - When successful, an AST is returned. ParseError can be + When successful, an AST is returned. ParseError can be thrown if the file doesn't parse successfully. - Errors from cpp will be printed out. + Errors from cpp will be printed out. """ if use_cpp: text = preprocess_file(filename, cpp_path, cpp_args) |