1
0
mirror of https://github.com/httpie/cli.git synced 2025-12-03 23:10:24 +02:00
This commit is contained in:
Jakub Roztocil
2013-08-01 08:46:37 +02:00
parent b671ee35e7
commit f87884dd8d
2 changed files with 7 additions and 7 deletions

View File

@@ -1,6 +1,5 @@
import os
import sys
import re
import codecs
from setuptools import setup
import httpie
@@ -24,12 +23,8 @@ if 'win32' in str(sys.platform).lower():
def long_description():
"""Pre-process the README so that PyPi can render it properly."""
with codecs.open('README.rst', encoding='utf8') as f:
rst = f.read()
code_block = '(:\n\n)?\.\. code-block::.*'
rst = re.sub(code_block, '::', rst)
return rst
return f.read()
setup(