mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 11:21:16 +00:00
Refactor switches in templates: step 1
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{% for method in class.methods|dictsort:"name" %}
|
||||
def {{ method.name|join:"_" }}( {% include "GithubObject.Parameters.py" with function=method only %} ):
|
||||
{% include "GithubObject.MethodBody.CheckArguments.py" %}
|
||||
{% include "GithubObject.MethodBody.DoRequest.py" %}
|
||||
{% include "GithubObject.MethodBody.UseResult.py" %}
|
||||
{% endfor %}
|
||||
{% for method in class.methods|dictsort:"name" %}
|
||||
def {{ method.name|join:"_" }}( {% include "GithubObject.Parameters.py" with function=method only %} ):
|
||||
{% include "GithubObject.MethodBody.CheckArguments.py" %}
|
||||
{% include "GithubObject.MethodBody.DoRequest.py" %}
|
||||
{% include "GithubObject.MethodBody.UseResult.py" %}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user