73.0 KB
/srv/reproducible-results/rbuild-debian/tmp.PHBQg1Z3Ru/b1/python-gevent_1.3.7-1_armhf.changes vs.
/srv/reproducible-results/rbuild-debian/tmp.PHBQg1Z3Ru/b2/python-gevent_1.3.7-1_armhf.changes
576 B
Files
    
Offset 1, 6 lines modifiedOffset 1, 6 lines modified
  
1 ·b8fc1842914a00fdee67d3c29a500aa7·5216928·debug·optional·python-gevent-dbg_1.3.7-1_armhf.deb1 ·b8fc1842914a00fdee67d3c29a500aa7·5216928·debug·optional·python-gevent-dbg_1.3.7-1_armhf.deb
2 ·0607d3f55b71619dea86ab2bfac4a6d4·480820·doc·optional·python-gevent-doc_1.3.7-1_all.deb2 ·8349b2fb50d8bf18d57268cafd6f5ec0·480756·doc·optional·python-gevent-doc_1.3.7-1_all.deb
3 ·516c2d82b45cadb5cdc878715ed3ec09·738188·python·optional·python-gevent_1.3.7-1_armhf.deb3 ·516c2d82b45cadb5cdc878715ed3ec09·738188·python·optional·python-gevent_1.3.7-1_armhf.deb
4 ·fdcce0ac0fd693000898330b3632f625·5502688·debug·optional·python3-gevent-dbg_1.3.7-1_armhf.deb4 ·fdcce0ac0fd693000898330b3632f625·5502688·debug·optional·python3-gevent-dbg_1.3.7-1_armhf.deb
5 ·151aca1d6a0e5a446b5c555991b55814·699232·python·optional·python3-gevent_1.3.7-1_armhf.deb5 ·151aca1d6a0e5a446b5c555991b55814·699232·python·optional·python3-gevent_1.3.7-1_armhf.deb
72.2 KB
python-gevent-doc_1.3.7-1_all.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2018-11-24·15:48:01.000000·debian-binary1 -rw-r--r--···0········0········0········4·2018-11-24·15:48:01.000000·debian-binary
2 -rw-r--r--···0········0········0·····6940·2018-11-24·15:48:01.000000·control.tar.xz2 -rw-r--r--···0········0········0·····6944·2018-11-24·15:48:01.000000·control.tar.xz
3 -rw-r--r--···0········0········0···473688·2018-11-24·15:48:01.000000·data.tar.xz3 -rw-r--r--···0········0········0···473620·2018-11-24·15:48:01.000000·data.tar.xz
98.0 B
control.tar.xz
70.0 B
control.tar
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
71.6 KB
data.tar.xz
71.6 KB
data.tar
44.3 KB
./usr/share/doc/python-gevent/html/api/gevent._ssl2.html
Ordering differences only
    
Offset 58, 183 lines modifiedOffset 58, 75 lines modified
58 <span·id="gevent-ssl2-ssl-wrapper-for-socket-objects-on-python-2-7-8-and-below"></span><h1><a·class="reference·internal"·href="#module-gevent._ssl2"·title="gevent._ssl2"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">gevent._ssl2</span></code></a>··SSL·wrapper·for·socket·objects·on·Python·2.7.8·and·below<a·class="headerlink"·href="#module-gevent._ssl2"·title="Permalink·to·this·headline">¶</a></h1>58 <span·id="gevent-ssl2-ssl-wrapper-for-socket-objects-on-python-2-7-8-and-below"></span><h1><a·class="reference·internal"·href="#module-gevent._ssl2"·title="gevent._ssl2"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">gevent._ssl2</span></code></a>··SSL·wrapper·for·socket·objects·on·Python·2.7.8·and·below<a·class="headerlink"·href="#module-gevent._ssl2"·title="Permalink·to·this·headline">¶</a></h1>
59 <p>For·the·documentation,·refer·to·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#module-ssl"·title="(in·Python·v2.7)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">ssl</span></code></a>·module·manual.</p>59 <p>For·the·documentation,·refer·to·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#module-ssl"·title="(in·Python·v2.7)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">ssl</span></code></a>·module·manual.</p>
60 <p>This·module·implements·cooperative·SSL·socket·wrappers.</p>60 <p>This·module·implements·cooperative·SSL·socket·wrappers.</p>
61 <div·class="deprecated">61 <div·class="deprecated">
62 <p><span·class="versionmodified">Deprecated·since·version·1.3:·</span>This·module·is·not·secure.·Support·for·Python·versions62 <p><span·class="versionmodified">Deprecated·since·version·1.3:·</span>This·module·is·not·secure.·Support·for·Python·versions
63 with·only·this·level·of·SSL·will·be·dropped·in·gevent·1.4.</p>63 with·only·this·level·of·SSL·will·be·dropped·in·gevent·1.4.</p>
64 </div>64 </div>
65 <dl·class="exception"> 
66 <dt·id="gevent._ssl2.SSLError"> 
67 <em·class="property">exception·</em><code·class="descname">SSLError</code><a·class="headerlink"·href="#gevent._ssl2.SSLError"·title="Permalink·to·this·definition">¶</a></dt> 
68 <dd><p>Bases:·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">OSError</span></code></p> 
69 <p>An·error·occurred·in·the·SSL·implementation.</p> 
70 </dd></dl> 
  
71 <dl·class="exception"> 
72 <dt·id="gevent._ssl2.SSLEOFError"> 
73 <em·class="property">exception·</em><code·class="descname">SSLEOFError</code><a·class="headerlink"·href="#gevent._ssl2.SSLEOFError"·title="Permalink·to·this·definition">¶</a></dt> 
74 <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a></p> 
75 <p>SSL/TLS·connection·terminated·abruptly.</p> 
76 </dd></dl> 
  
77 <dl·class="exception"> 
78 <dt·id="gevent._ssl2.SSLWantWriteError"> 
79 <em·class="property">exception·</em><code·class="descname">SSLWantWriteError</code><a·class="headerlink"·href="#gevent._ssl2.SSLWantWriteError"·title="Permalink·to·this·definition">¶</a></dt> 
80 <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a></p> 
81 <p>Non-blocking·SSL·socket·needs·to·write·more·data 
82 before·the·requested·operation·can·be·completed.</p> 
83 </dd></dl> 
  
84 <dl·class="attribute">65 <dl·class="attribute">
85 <dt·id="gevent._ssl2.CertificateError">66 <dt·id="gevent._ssl2.CertificateError">
86 <code·class="descname">CertificateError</code><a·class="headerlink"·href="#gevent._ssl2.CertificateError"·title="Permalink·to·this·definition">¶</a></dt>67 <code·class="descname">CertificateError</code><a·class="headerlink"·href="#gevent._ssl2.CertificateError"·title="Permalink·to·this·definition">¶</a></dt>
87 <dd><p>alias·of·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLCertVerificationError</span></code></p>68 <dd><p>alias·of·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLCertVerificationError</span></code></p>
88 </dd></dl>69 </dd></dl>
  
89 <dl·class="attribute">70 <dl·class="attribute">
90 <dt·id="gevent._ssl2.socket_error">71 <dt·id="gevent._ssl2.socket_error">
91 <code·class="descname">socket_error</code><a·class="headerlink"·href="#gevent._ssl2.socket_error"·title="Permalink·to·this·definition">¶</a></dt>72 <code·class="descname">socket_error</code><a·class="headerlink"·href="#gevent._ssl2.socket_error"·title="Permalink·to·this·definition">¶</a></dt>
92 <dd><p>alias·of·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">builtins.OSError</span></code></p>73 <dd><p>alias·of·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">builtins.OSError</span></code></p>
93 </dd></dl>74 </dd></dl>
  
94 <dl·class="exception">75 <dl·class="exception">
95 <dt·id="gevent._ssl2.SSLCertVerificationError">76 <dt·id="gevent._ssl2.SSLWantWriteError">
96 <em·class="property">exception·</em><code·class="descname">SSLCertVerificationError</code><a·class="headerlink"·href="#gevent._ssl2.SSLCertVerificationError"·title="Permalink·to·this·definition">¶</a></dt>77 <em·class="property">exception·</em><code·class="descname">SSLWantWriteError</code><a·class="headerlink"·href="#gevent._ssl2.SSLWantWriteError"·title="Permalink·to·this·definition">¶</a></dt>
97 <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a>,·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ValueError</span></code></p> 
98 <p>A·certificate·could·not·be·verified.</p> 
99 </dd></dl> 
  
100 <dl·class="exception"> 
101 <dt·id="gevent._ssl2.SSLZeroReturnError"> 
102 <em·class="property">exception·</em><code·class="descname">SSLZeroReturnError</code><a·class="headerlink"·href="#gevent._ssl2.SSLZeroReturnError"·title="Permalink·to·this·definition">¶</a></dt> 
103 <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a></p>78 <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a></p>
104 <p>SSL/TLS·session·closed·cleanly.</p>79 <p>Non-blocking·SSL·socket·needs·to·write·more·data
 80 before·the·requested·operation·can·be·completed.</p>
105 </dd></dl>81 </dd></dl>
  
106 <dl·class="exception">82 <dl·class="exception">
107 <dt·id="gevent._ssl2.SSLWantReadError">83 <dt·id="gevent._ssl2.SSLEOFError">
108 <em·class="property">exception·</em><code·class="descname">SSLWantReadError</code><a·class="headerlink"·href="#gevent._ssl2.SSLWantReadError"·title="Permalink·to·this·definition">¶</a></dt>84 <em·class="property">exception·</em><code·class="descname">SSLEOFError</code><a·class="headerlink"·href="#gevent._ssl2.SSLEOFError"·title="Permalink·to·this·definition">¶</a></dt>
109 <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a></p>85 <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a></p>
110 <p>Non-blocking·SSL·socket·needs·to·read·more·data86 <p>SSL/TLS·connection·terminated·abruptly.</p>
111 before·the·requested·operation·can·be·completed.</p> 
112 </dd></dl>87 </dd></dl>
  
113 <dl·class="exception">88 <dl·class="exception">
114 <dt·id="gevent._ssl2.SSLSyscallError">89 <dt·id="gevent._ssl2.SSLSyscallError">
115 <em·class="property">exception·</em><code·class="descname">SSLSyscallError</code><a·class="headerlink"·href="#gevent._ssl2.SSLSyscallError"·title="Permalink·to·this·definition">¶</a></dt>90 <em·class="property">exception·</em><code·class="descname">SSLSyscallError</code><a·class="headerlink"·href="#gevent._ssl2.SSLSyscallError"·title="Permalink·to·this·definition">¶</a></dt>
116 <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a></p>91 <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a></p>
117 <p>System·error·when·attempting·SSL·operation.</p>92 <p>System·error·when·attempting·SSL·operation.</p>
118 </dd></dl>93 </dd></dl>
  
119 <dl·class="class">94 <dl·class="exception">
120 <dt·id="gevent._ssl2.AlertDescription">95 <dt·id="gevent._ssl2.SSLZeroReturnError">
121 <em·class="property">class·</em><code·class="descname">AlertDescription</code><a·class="headerlink"·href="#gevent._ssl2.AlertDescription"·title="Permalink·to·this·definition">¶</a></dt>96 <em·class="property">exception·</em><code·class="descname">SSLZeroReturnError</code><a·class="headerlink"·href="#gevent._ssl2.SSLZeroReturnError"·title="Permalink·to·this·definition">¶</a></dt>
122 <dd><p>Bases:·<code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">enum.IntEnum</span></code></p>97 <dd><p>Bases:·<a·class="reference·external"·href="http://docs.python.org/library/ssl.html#ssl.SSLError"·title="(in·Python·v2.7)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ssl.SSLError</span></code></a></p>
123 <p>An·enumeration.</p>98 <p>SSL/TLS·session·closed·cleanly.</p>
124 </dd></dl> 
  
125 <dl·class="class"> 
126 <dt·id="gevent._ssl2.SSLSocket"> 
127 <em·class="property">class·</em><code·class="descname">SSLSocket</code><span·class="sig-paren">(</span><em>sock</em>,·<em>keyfile=None</em>,·<em>certfile=None</em>,·<em>server_side=False</em>,·<em>cert_reqs=&lt;VerifyMode.CERT_NONE:·0&gt;</em>,·<em>ssl_version=&lt;_SSLMethod.PROTOCOL_TLS:·2&gt;</em>,·<em>ca_certs=None</em>,·<em>do_handshake_on_connect=True</em>,·<em>suppress_ragged_eofs=True</em>,·<em>ciphers=None</em><span·class="sig-paren">)</span><a·class="reference·internal"·href="../_modules/gevent/_ssl2.html#SSLSocket"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#gevent._ssl2.SSLSocket"·title="Permalink·to·this·definition">¶</a></dt> 
128 <dd><p>Bases:·<a·class="reference·internal"·href="gevent._socket2.html#gevent._socket2.socket"·title="gevent._socket2.socket"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">gevent._socket2.socket</span></code></a></p> 
129 <p>gevent·<a·class="reference·external"·href="https://docs.python.org/2.6/library/ssl.html#sslsocket-objects">ssl.SSLSocket</a> 
130 for·Pythons·&lt;·2.7.9.</p> 
131 <dl·class="method"> 
132 <dt·id="gevent._ssl2.SSLSocket.accept"> 
133 <code·class="descname">accept</code><span·class="sig-paren">(</span><span·class="sig-paren">)</span><a·class="reference·internal"·href="../_modules/gevent/_ssl2.html#SSLSocket.accept"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#gevent._ssl2.SSLSocket.accept"·title="Permalink·to·this·definition">¶</a></dt> 
134 <dd><p>Accepts·a·new·connection·from·a·remote·client,·and·returns 
135 a·tuple·containing·that·new·connection·wrapped·with·a·server-side 
136 SSL·channel,·and·the·address·of·the·remote·client.</p> 
137 </dd></dl> 
  
138 <dl·class="method"> 
139 <dt·id="gevent._ssl2.SSLSocket.connect"> 
140 <code·class="descname">connect</code><span·class="sig-paren">(</span><em>addr</em><span·class="sig-paren">)</span><a·class="reference·internal"·href="../_modules/gevent/_ssl2.html#SSLSocket.connect"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#gevent._ssl2.SSLSocket.connect"·title="Permalink·to·this·definition">¶</a></dt> 
141 <dd><p>Connects·to·remote·ADDR,·and·then·wraps·the·connection·in 
142 an·SSL·channel.</p> 
143 </dd></dl> 
  
144 <dl·class="method"> 
145 <dt·id="gevent._ssl2.SSLSocket.do_handshake"> 
146 <code·class="descname">do_handshake</code><span·class="sig-paren">(</span><span·class="sig-paren">)</span><a·class="reference·internal"·href="../_modules/gevent/_ssl2.html#SSLSocket.do_handshake"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#gevent._ssl2.SSLSocket.do_handshake"·title="Permalink·to·this·definition">¶</a></dt> 
147 <dd><p>Perform·a·TLS/SSL·handshake.</p> 
148 </dd></dl> 
  
149 <dl·class="method"> 
150 <dt·id="gevent._ssl2.SSLSocket.getpeercert"> 
151 <code·class="descname">getpeercert</code><span·class="sig-paren">(</span><em>binary_form=False</em><span·class="sig-paren">)</span><a·class="reference·internal"·href="../_modules/gevent/_ssl2.html#SSLSocket.getpeercert"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#gevent._ssl2.SSLSocket.getpeercert"·title="Permalink·to·this·definition">¶</a></dt> 
152 <dd><p>Returns·a·formatted·version·of·the·data·in·the 
153 certificate·provided·by·the·other·end·of·the·SSL·channel. 
154 Return·None·if·no·certificate·was·provided,·{}·if·a 
155 certificate·was·provided,·but·not·validated.</p> 
156 </dd></dl> 
  
157 <dl·class="method"> 
158 <dt·id="gevent._ssl2.SSLSocket.makefile"> 
159 <code·class="descname">makefile</code><span·class="sig-paren">(</span><em>mode='r'</em>,·<em>bufsize=-1</em><span·class="sig-paren">)</span><a·class="reference·internal"·href="../_modules/gevent/_ssl2.html#SSLSocket.makefile"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#gevent._ssl2.SSLSocket.makefile"·title="Permalink·to·this·definition">¶</a></dt> 
160 <dd><p>Make·and·return·a·file-like·object·that 
161 works·with·the·SSL·connection.··Just·use·the·code 
162 from·the·socket·module.</p> 
163 </dd></dl> 
  
164 <dl·class="method"> 
165 <dt·id="gevent._ssl2.SSLSocket.read"> 
166 <code·class="descname">read</code><span·class="sig-paren">(</span><em>len=1024</em><span·class="sig-paren">)</span><a·class="reference·internal"·href="../_modules/gevent/_ssl2.html#SSLSocket.read"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#gevent._ssl2.SSLSocket.read"·title="Permalink·to·this·definition">¶</a></dt> 
167 <dd><p>Read·up·to·LEN·bytes·and·return·them. 
168 Return·zero-length·string·on·EOF.</p> 
Max diff block lines reached; 31238/45185 bytes (69.13%) of diff not shown.
27.3 KB
./usr/share/doc/python-gevent/html/api/gevent.os.html
Ordering differences only
    
Offset 89, 48 lines modifiedOffset 89, 14 lines modified
89 <p·class="first·admonition-title">Warning</p>89 <p·class="first·admonition-title">Warning</p>
90 <p·class="last">Forking·a·process·that·uses·greenlets·does·not·eliminate·all·non-running90 <p·class="last">Forking·a·process·that·uses·greenlets·does·not·eliminate·all·non-running
91 greenlets.·Any·that·were·scheduled·in·the·hub·of·the·forking·thread·in·the·parent91 greenlets.·Any·that·were·scheduled·in·the·hub·of·the·forking·thread·in·the·parent
92 remain·scheduled·in·the·child;·compare·this·to·how·normal·threads·operate.·(This·behaviour92 remain·scheduled·in·the·child;·compare·this·to·how·normal·threads·operate.·(This·behaviour
93 may·change·is·a·subsequent·major·release.)</p>93 may·change·is·a·subsequent·major·release.)</p>
94 </div>94 </div>
95 <dl·class="function">95 <dl·class="function">
96 <dt·id="gevent.os.fork_gevent"> 
97 <code·class="descname">fork_gevent</code><span·class="sig-paren">(</span><span·class="sig-paren">)</span><a·class="reference·internal"·href="../_modules/gevent/os.html#fork_gevent"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#gevent.os.fork_gevent"·title="Permalink·to·this·definition">¶</a></dt> 
98 <dd><p>Forks·the·process·using·<a·class="reference·external"·href="http://docs.python.org/library/os.html#os.fork"·title="(in·Python·v2.7)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">os.fork()</span></code></a>·and·prepares·the 
99 child·process·to·continue·using·gevent·before·returning.</p> 
100 <div·class="admonition·note"> 
101 <p·class="first·admonition-title">Note</p> 
102 <p·class="last">The·PID·returned·by·this·function·may·not·be·waitable·with 
103 either·the·original·<a·class="reference·external"·href="http://docs.python.org/library/os.html#os.waitpid"·title="(in·Python·v2.7)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">os.waitpid()</span></code></a>·or·this·module’s 
104 <a·class="reference·internal"·href="#gevent.os.waitpid"·title="gevent.os.waitpid"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">waitpid()</span></code></a>·and·it·may·not·generate·SIGCHLD·signals·if 
105 libev·child·watchers·are·or·ever·have·been·in·use.·For 
106 example,·the·<a·class="reference·internal"·href="gevent.subprocess.html#module-gevent.subprocess"·title="gevent.subprocess"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">gevent.subprocess</span></code></a>·module·uses·libev 
107 child·watchers·(which·parts·of·gevent·use·libev·child 
108 watchers·is·subject·to·change·at·any·time).·Most 
109 applications·should·use·<a·class="reference·internal"·href="#gevent.os.fork_and_watch"·title="gevent.os.fork_and_watch"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">fork_and_watch()</span></code></a>,·which·is 
110 monkey-patched·as·the·default·replacement·for 
111 <a·class="reference·external"·href="http://docs.python.org/library/os.html#os.fork"·title="(in·Python·v2.7)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">os.fork()</span></code></a>·and·implements·the·<code·class="docutils·literal·notranslate"><span·class="pre">fork</span></code>·function·of 
112 this·module·by·default,·unless·the·environment·variable 
113 <code·class="docutils·literal·notranslate"><span·class="pre">GEVENT_NOWAITPID</span></code>·is·defined·before·this·module·is 
114 imported.</p> 
115 </div> 
116 <div·class="versionadded"> 
117 <p><span·class="versionmodified">New·in·version·1.1b2.</span></p> 
118 </div> 
119 </dd></dl> 
  
120 <dl·class="function"> 
121 <dt·id="gevent.os.tp_write"> 
122 <code·class="descname">tp_write</code><span·class="sig-paren">(</span><em>fd</em>,·<em>buf</em><span·class="sig-paren">)</span><a·class="reference·internal"·href="../_modules/gevent/os.html#tp_write"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#gevent.os.tp_write"·title="Permalink·to·this·definition">¶</a></dt> 
123 <dd><p>Write·bytes·from·buffer·<em>buf</em>·to·file·descriptor·<em>fd</em>.·Return·the 
124 number·of·bytes·written.</p> 
125 <p>Writing·is·done·using·the·threadpool.</p> 
126 </dd></dl> 
  
127 <dl·class="function"> 
128 <dt·id="gevent.os.make_nonblocking">96 <dt·id="gevent.os.make_nonblocking">
129 <code·class="descname">make_nonblocking</code><span·class="sig-paren">(</span><em>fd</em><span·class="sig-paren">)</span><a·class="reference·internal"·href="../_modules/gevent/os.html#make_nonblocking"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#gevent.os.make_nonblocking"·title="Permalink·to·this·definition">¶</a></dt>97 <code·class="descname">make_nonblocking</code><span·class="sig-paren">(</span><em>fd</em><span·class="sig-paren">)</span><a·class="reference·internal"·href="../_modules/gevent/os.html#make_nonblocking"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#gevent.os.make_nonblocking"·title="Permalink·to·this·definition">¶</a></dt>
130 <dd><p>Put·the·file·descriptor·<em>fd</em>·into·non-blocking·mode·if98 <dd><p>Put·the·file·descriptor·<em>fd</em>·into·non-blocking·mode·if
131 possible.</p>99 possible.</p>
132 <table·class="docutils·field-list"·frame="void"·rules="none">100 <table·class="docutils·field-list"·frame="void"·rules="none">
133 <col·class="field-name"·/>101 <col·class="field-name"·/>
134 <col·class="field-body"·/>102 <col·class="field-body"·/>
Offset 138, 69 lines modifiedOffset 104, 46 lines modified
138 <tr·class="field-odd·field"><th·class="field-name">Returns:</th><td·class="field-body">A·boolean·value·that·evaluates·to·True·if·successful.</td>104 <tr·class="field-odd·field"><th·class="field-name">Returns:</th><td·class="field-body">A·boolean·value·that·evaluates·to·True·if·successful.</td>
139 </tr>105 </tr>
140 </tbody>106 </tbody>
141 </table>107 </table>
142 </dd></dl>108 </dd></dl>
  
143 <dl·class="function">109 <dl·class="function">
 110 <dt·id="gevent.os.forkpty_gevent">
 111 <code·class="descname">forkpty_gevent</code><span·class="sig-paren">(</span><span·class="sig-paren">)</span><a·class="reference·internal"·href="../_modules/gevent/os.html#forkpty_gevent"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#gevent.os.forkpty_gevent"·title="Permalink·to·this·definition">¶</a></dt>
 112 <dd><p>Forks·the·process·using·<a·class="reference·external"·href="http://docs.python.org/library/os.html#os.forkpty"·title="(in·Python·v2.7)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">os.forkpty()</span></code></a>·and·prepares·the
 113 child·process·to·continue·using·gevent·before·returning.</p>
 114 <p>Returns·a·tuple·(pid,·master_fd).·The·<code·class="xref·py·py-obj·docutils·literal·notranslate"><span·class="pre">master_fd</span></code>·is·<em>not</em>·put·into
 115 non-blocking·mode.</p>
 116 <p>Availability:·Some·Unix·systems.</p>
 117 <div·class="admonition·seealso">
 118 <p·class="first·admonition-title">See·also</p>
 119 <p·class="last">This·function·has·the·same·limitations·as·<a·class="reference·internal"·href="#gevent.os.fork_gevent"·title="gevent.os.fork_gevent"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">fork_gevent()</span></code></a>.</p>
 120 </div>
 121 <div·class="versionadded">
 122 <p><span·class="versionmodified">New·in·version·1.1b5.</span></p>
 123 </div>
 124 </dd></dl>
  
 125 <dl·class="function">
144 <dt·id="gevent.os.tp_read">126 <dt·id="gevent.os.tp_read">
145 <code·class="descname">tp_read</code><span·class="sig-paren">(</span><em>fd</em>,·<em>n</em><span·class="sig-paren">)</span><a·class="reference·internal"·href="../_modules/gevent/os.html#tp_read"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#gevent.os.tp_read"·title="Permalink·to·this·definition">¶</a></dt>127 <code·class="descname">tp_read</code><span·class="sig-paren">(</span><em>fd</em>,·<em>n</em><span·class="sig-paren">)</span><a·class="reference·internal"·href="../_modules/gevent/os.html#tp_read"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#gevent.os.tp_read"·title="Permalink·to·this·definition">¶</a></dt>
146 <dd><p>Read·up·to·<em>n</em>·bytes·from·file·descriptor·<em>fd</em>.·Return·a·string128 <dd><p>Read·up·to·<em>n</em>·bytes·from·file·descriptor·<em>fd</em>.·Return·a·string
147 containing·the·bytes·read.·If·end-of-file·is·reached,·an·empty·string129 containing·the·bytes·read.·If·end-of-file·is·reached,·an·empty·string
148 is·returned.</p>130 is·returned.</p>
149 <p>Reading·is·done·using·the·threadpool.</p>131 <p>Reading·is·done·using·the·threadpool.</p>
150 </dd></dl>132 </dd></dl>
  
151 <dl·class="function">133 <dl·class="function">
152 <dt·id="gevent.os.fork_and_watch">134 <dt·id="gevent.os.nb_write">
153 <code·class="descname">fork_and_watch</code><span·class="sig-paren">(</span><em>callback=None</em>,·<em>loop=None</em>,·<em>ref=False</em>,·<em>fork=&lt;function·fork_gevent&gt;</em><span·class="sig-paren">)</span><a·class="reference·internal"·href="../_modules/gevent/os.html#fork_and_watch"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#gevent.os.fork_and_watch"·title="Permalink·to·this·definition">¶</a></dt>135 <code·class="descname">nb_write</code><span·class="sig-paren">(</span><em>fd</em>,·<em>buf</em><span·class="sig-paren">)</span><a·class="reference·internal"·href="../_modules/gevent/os.html#nb_write"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#gevent.os.nb_write"·title="Permalink·to·this·definition">¶</a></dt>
154 <dd><p>Fork·a·child·process·and·start·a·child·watcher·for·it·in·the·parent·process.</p>136 <dd><p>Write·some·number·of·bytes·from·buffer·<em>buf</em>·to·file
155 <p>This·call·cooperates·with·<a·class="reference·internal"·href="#gevent.os.waitpid"·title="gevent.os.waitpid"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">waitpid()</span></code></a>·to·enable·cooperatively·waiting137 descriptor·<em>fd</em>.·Return·the·number·of·bytes·written,·which·may
156 for·children·to·finish.·When·monkey-patching,·these·functions·are·patched·in·as138 be·less·than·the·length·of·<em>buf</em>.</p>
157 <a·class="reference·external"·href="http://docs.python.org/library/os.html#os.fork"·title="(in·Python·v2.7)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">os.fork()</span></code></a>·and·<a·class="reference·external"·href="http://docs.python.org/library/os.html#os.waitpid"·title="(in·Python·v2.7)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">os.waitpid()</span></code></a>,·respectively.</p>139 <p>The·file·descriptor·must·be·in·non-blocking·mode.</p>
158 <p>In·the·child·process,·this·function·calls·<code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">gevent.hub.reinit()</span></code>·before·returning.</p> 
159 <p>Availability:·POSIX.</p> 
160 <table·class="docutils·field-list"·frame="void"·rules="none"> 
161 <col·class="field-name"·/> 
162 <col·class="field-body"·/> 
163 <tbody·valign="top"> 
164 <tr·class="field-odd·field"><th·class="field-name">Parameters:</th><td·class="field-body"><ul·class="first·last·simple"> 
165 <li><strong>callback</strong>··If·given,·a·callable·that·will·be·called·with·the·child·watcher 
166 when·the·child·finishes.</li> 
167 <li><strong>loop</strong>··The·loop·to·start·the·watcher·in.·Defaults·to·the 
168 loop·of·the·current·hub.</li> 
169 <li><strong>fork</strong>··The·fork·function.·Defaults·to·<a·class="reference·internal"·href="#gevent.os.fork_gevent"·title="gevent.os.fork_gevent"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">the</span>·<span·class="pre">one</span>·<span·class="pre">defined</span>·<span·class="pre">in</span>·<span·class="pre">this</span> 
170 <span·class="pre">module</span></code></a>·(which·automatically·calls·<code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">gevent.hub.reinit()</span></code>). 
171 Pass·the·builtin·<a·class="reference·external"·href="http://docs.python.org/library/os.html#os.fork"·title="(in·Python·v2.7)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">os.fork()</span></code></a>·function·if·you·do·not·need·to 
172 initialize·gevent·in·the·child·process.</li> 
173 </ul> 
174 </td> 
175 </tr> 
176 </tbody> 
177 </table> 
178 <div·class="versionadded"> 
179 <p><span·class="versionmodified">New·in·version·1.1b1.</span></p> 
180 </div> 
181 <div·class="admonition·seealso"> 
182 <p·class="first·admonition-title">See·also</p> 
183 <p·class="last"><a·class="reference·internal"·href="gevent.monkey.html#gevent.monkey.get_original"·title="gevent.monkey.get_original"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">gevent.monkey.get_original()</span></code></a>·To·access·the·builtin·<a·class="reference·external"·href="http://docs.python.org/library/os.html#os.fork"·title="(in·Python·v2.7)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">os.fork()</span></code></a>.</p> 
184 </div> 
185 </dd></dl> 
  
186 <dl·class="function"> 
187 <dt·id="gevent.os.fork"> 
188 <code·class="descname">fork</code><span·class="sig-paren">(</span><em>*args</em>,·<em>**kwargs</em><span·class="sig-paren">)</span><a·class="reference·internal"·href="../_modules/gevent/os.html#fork"><span·class="viewcode-link">[source]</span></a><a·class="headerlink"·href="#gevent.os.fork"·title="Permalink·to·this·definition">¶</a></dt> 
189 <dd><p>Forks·a·child·process·and·starts·a·child·watcher·for·it·in·the 
190 parent·process·so·that·<code·class="docutils·literal·notranslate"><span·class="pre">waitpid</span></code>·and·SIGCHLD·work·as·expected.</p> 
191 <p>This·implementation·of·<code·class="docutils·literal·notranslate"><span·class="pre">fork</span></code>·is·a·wrapper·for·<a·class="reference·internal"·href="#gevent.os.fork_and_watch"·title="gevent.os.fork_and_watch"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">fork_and_watch()</span></code></a> 
192 when·the·environment·variable·<code·class="docutils·literal·notranslate"><span·class="pre">GEVENT_NOWAITPID</span></code>·is·<em>not</em>·defined. 
193 This·is·the·default·and·should·be·used·by·most·applications.</p> 
194 <div·class="versionchanged"> 
195 <p><span·class="versionmodified">Changed·in·version·1.1b2.</span></p> 
Max diff block lines reached; 15717/27848 bytes (56.44%) of diff not shown.