Files
PyGithub/codegen/templates/GithubObject.Concatenation.py
T
2012-05-10 18:10:17 +02:00

1 line
303 B
Python

{% for part in concatenation %}{% if forloop.counter0 > 0 %} + {% endif %}{% if part.type == "constant" %}"{{ part.value }}"{% endif %}{% if part.type == "argument" %}str( {{ part.value|join:"." }} ){% endif %}{% if part.type == "attribute" %}str( self.{{ part.value|join:"." }} ){% endif %}{% endfor %}