File: args.py

package info (click to toggle)
grantlee5 5.3.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,004 kB
  • sloc: cpp: 25,617; javascript: 6,043; python: 299; sh: 97; perl: 37; ruby: 24; makefile: 17
file content (4 lines) | stat: -rw-r--r-- 316 bytes parent folder | download | duplicates (9)
1
2
3
4
{% for arg in method.args %}{% comment %}
{% endcomment %}{% if forloop.first %}, {% endif %}{{ arg.name }}{% if default and arg.default %} = {{ arg.default }}{% endif %}{% comment %}
  Add a comma between the arguments, except after the last one:
  {% endcomment %}{% if not forloop.last %}, {% endif %}{% endfor %}