Skip to content

Commit

Permalink
remove some __init__ variables. update parser. add to authors.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
naasbot committed Mar 13, 2018
1 parent 67c286d commit 7819aee
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 13 deletions.
3 changes: 2 additions & 1 deletion AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ Contributors
------------

* Grant Hulegaard <loki.labrys@gmail.com> `@gshulegaard <https://github.com/gshulegaard> <https://gitlab.com/gshulegaard>`_
* Ivan Poluyanov <i.poluyanov@icloud.com> `@poluyanov <https://github.com/poluyanov>`_
* Ivan Poluyanov <i.poluyanov@icloud.com> `@poluyanov <https://github.com/poluyanov>`_
* Raymond Lau <raymond.lau.ca@gmail.com> `@Raymond26 <https://github.com/Raymond26>`_
7 changes: 0 additions & 7 deletions crossplane/ext/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
# -*- coding: utf-8 -*-

__author__ = "Raymond Lau"
__copyright__ = "Copyright (C) Nginx, Inc. All rights reserved."
__license__ = "Apache 2.0"
__maintainer__ = "Raymond Lau"
__email__ = "raymond.lau@nginx.com"
2 changes: 1 addition & 1 deletion crossplane/ext/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def lex(self, token_iterator, directive):
pass

@abc.abstractmethod
def parse(self, parsing, tokens, ctx=(), consume=False):
def parse(self, statement, parsing, tokens, ctx=(), consume=False):
pass

@abc.abstractmethod
Expand Down
2 changes: 1 addition & 1 deletion crossplane/ext/lua.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def lex(self, token_iterator, directive):
raise StopIteration
token += char

def parse(self, parsing, tokens, ctx=(), consume=False):
def parse(self, statement, parsing, tokens, ctx=(), consume=False):
pass

def build(self, stmt, padding, state, indent=4, tabs=False):
Expand Down
3 changes: 2 additions & 1 deletion crossplane/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ def _parse(parsing, tokens, ctx=(), consume=False):
}

if stmt['directive'] in EXTERNAL_PARSERS:
EXTERNAL_PARSERS[stmt['directive']](parsing, tokens, ctx, consume)
EXTERNAL_PARSERS[stmt['directive']](stmt, parsing, tokens, ctx, consume)
parsed.append(stmt)
continue

# parse arguments by reading tokens
Expand Down
1 change: 0 additions & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# -*- coding: utf-8 -*-
1 change: 0 additions & 1 deletion tests/ext/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# -*- coding: utf-8 -*-

0 comments on commit 7819aee

Please sign in to comment.