Server IP : 85.214.239.14 / Your IP : 3.145.202.60 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/3/cwd/proc/3/cwd/srv/modoboa/env/lib64/python3.5/site-packages/reportlab/ |
Upload File : |
#Copyright ReportLab Europe Ltd. 2000-2018 #see license.txt for license details __doc__="""The Reportlab PDF generation library.""" Version = "3.5.42" __version__=Version __date__='20200317' import sys, os if sys.version_info[0:2]!=(2, 7) and sys.version_info<(3, 5): raise ImportError("""reportlab requires Python 2.7+ or 3.5+; 3.0-3.4 are not supported. If you want to try with other python versions edit line 10 of reportlab/__init__ to remove this error.""") #define these early in reportlab's life isPy3 = sys.version_info[0]==3 if isPy3: def cmp(a,b): return -1 if a<b else (1 if a>b else 0) xrange = range ascii = ascii def _fake_import(fn,name): from importlib import machinery m = machinery.SourceFileLoader(name,fn) try: sys.modules[name] = m.load_module(name) except FileNotFoundError: raise ImportError('file %s not found' % ascii(fn)) else: from future_builtins import ascii xrange = xrange cmp = cmp def _fake_import(fn,name): if os.path.isfile(fn): import imp with open(fn,'rb') as f: sys.modules[name] = imp.load_source(name,fn,f) #try to use dynamic modifications from #reportlab.local_rl_mods.py #reportlab_mods.py or ~/.reportlab_mods try: import reportlab.local_rl_mods except ImportError: pass if not isPy3: PermissionError = ImportError try: import reportlab_mods #application specific modifications can be anywhere on python path except ImportError: try: _fake_import(os.path.expanduser(os.path.join('~','.reportlab_mods')),'reportlab_mods') except (ImportError,KeyError,PermissionError): pass