stdout=subprocess.PIPE, stderr=subprocess.PIPE)
os.chdir(curdir)
stdout, stderr = proc.communicate()
- text = stdout.decode("utf-8")[:1000]
+ text = unicode(stdout, "utf-8", errors="ignore")[:1000]
slug = get_hash(text)
title = ''
if self.first_line_title:
{% for poet in poets %}
<li><a href="{{ poet.get_absolute_url }}">{{ poet }}</a>
(<a href="{% url 'poetry_new' poet.slug %}">Twórz-że!</a>)</li>
- <li><a href="{{ poet.get_absolute_url }}">{{ poet }}</a>
- (<a href="{% url 'poetry_new' poet.slug %}">Twórz-że!</a>)</li>
- <li><a href="{{ poet.get_absolute_url }}">{{ poet }}</a>
- (<a href="{% url 'poetry_new' poet.slug %}">Twórz-że!</a>)</li>
- <li><a href="{{ poet.get_absolute_url }}">{{ poet }}</a>
- (<a href="{% url 'poetry_new' poet.slug %}">Twórz-że!</a>)</li>
- <li><a href="{{ poet.get_absolute_url }}">{{ poet }}</a>
- (<a href="{% url 'poetry_new' poet.slug %}">Twórz-że!</a>)</li>
- <li><a href="{{ poet.get_absolute_url }}">{{ poet }}</a>
- (<a href="{% url 'poetry_new' poet.slug %}">Twórz-że!</a>)</li>
- <li><a href="{{ poet.get_absolute_url }}">{{ poet }}</a>
- (<a href="{% url 'poetry_new' poet.slug %}">Twórz-że!</a>)</li>
- <li><a href="{{ poet.get_absolute_url }}">{{ poet }}</a>
- (<a href="{% url 'poetry_new' poet.slug %}">Twórz-że!</a>)</li>
- <li><a href="{{ poet.get_absolute_url }}">{{ poet }}</a>
- (<a href="{% url 'poetry_new' poet.slug %}">Twórz-że!</a>)</li>
{% endfor %}
</ul>