@@ -58,7 +58,7 @@ A computer has an *environment*:
58
58
59
59
.. class :: small
60
60
61
- ::
61
+ ::
62
62
63
63
C:\> set
64
64
ALLUSERSPROFILE=C:\ProgramData
@@ -76,7 +76,7 @@ This can be manipulated:
76
76
77
77
.. class :: small
78
78
79
- ::
79
+ ::
80
80
81
81
$ export VARIABLE='some value'
82
82
$ echo $VARIABLE
@@ -139,7 +139,7 @@ We can see this *environment* in Python, too::
139
139
>> > print os.environ[' VARIABLE' ]
140
140
some_value
141
141
>> > print os.environ.keys()
142
- [' VERSIONER_PYTHON_PREFER_32_BIT' , ' VARIABLE' ,
142
+ [' VERSIONER_PYTHON_PREFER_32_BIT' , ' VARIABLE' ,
143
143
' LOGNAME' , ' USER' , ' PATH' , ... ]
144
144
145
145
Altering the Environment
@@ -183,11 +183,11 @@ Lessons Learned
183
183
184
184
::
185
185
186
- subprocess.Popen(args, bufsize=0, executable=None,
187
- stdin=None, stdout=None, stderr=None,
188
- preexec_fn=None, close_fds=False,
186
+ subprocess.Popen(args, bufsize=0, executable=None,
187
+ stdin=None, stdout=None, stderr=None,
188
+ preexec_fn=None, close_fds=False,
189
189
shell=False, cwd=None, env=None, # <-------
190
- universal_newlines=False, startupinfo=None,
190
+ universal_newlines=False, startupinfo=None,
191
191
creationflags=0)
192
192
193
193
@@ -346,7 +346,7 @@ Back in your editor, add the following lines, just below ``import cgi``:
346
346
347
347
.. class :: incremental
348
348
349
- Now, reload again.
349
+ Now, reload again.
350
350
351
351
cgitb Output
352
352
------------
@@ -724,7 +724,7 @@ A WSGI Appliction must:
724
724
725
725
.. class :: incremental small
726
726
727
- * Be a callable (function, method, class)
727
+ * Be a callable (function, method, class)
728
728
* Take an environment and a ``start_response `` callable as arguments
729
729
* Call the ``start_response `` method.
730
730
* Return an iterable of 0 or more strings, which are treated as the body of
@@ -1067,7 +1067,7 @@ Dispatch
1067
1067
--------
1068
1068
1069
1069
We have to write an app that will map our incoming request path to some code
1070
- that can handle that request.
1070
+ that can handle that request.
1071
1071
1072
1072
.. class :: incremental
1073
1073
@@ -1138,7 +1138,7 @@ My Solution
1138
1138
Application Updates
1139
1139
-------------------
1140
1140
1141
- We need to hook our new router into the application.
1141
+ We need to hook our new router into the application.
1142
1142
1143
1143
.. class :: incremental
1144
1144
@@ -1256,7 +1256,7 @@ Click on a link to view the detail page. Does it load without error?
1256
1256
Showing Details
1257
1257
---------------
1258
1258
1259
- The next step of course is to polish up those detail pages.
1259
+ The next step of course is to polish up those detail pages.
1260
1260
1261
1261
.. class :: incremental
1262
1262
@@ -1392,4 +1392,4 @@ the ``wsgiref`` module. It's the canonical example of a simple wsgi server
1392
1392
1393
1393
.. class :: incremental center
1394
1394
1395
- **See you Next Time **
1395
+ **See you Next Time **
0 commit comments