Змея / Говнокод #26665 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
post_content = post_node.xpath('div[@class="entry-content"]')[0]
post_code_nodes = post_content.xpath('.//code')
if len(post_code_nodes) > 0:
    post.code = post_code_nodes[0].text
else:
    post.code = inner_html_ru(post_content)

Багор.

Запостил: gost gost, (Updated )

Комментарии (1) RSS

  • Страйко, удали, пожалуйста, этот пост: он лишний.
    Ответить

Добавить комментарий

Где здесь C++, guest?!

    А не использовать ли нам bbcode?


    8