Merge pull request #1000 from mikar/master
Before adoption: this commit came in with the history the project adopted, so no landing records it.
harmless comment fixes/typos
authored by Kenneth Reitz · committed by Kenneth Reitz · parents a7b5cec, db12a8f · Browse files · 5 files·+14 added−14 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+14 added−14 removed
- other:+14 added−14 removed
Provenance
- Commit
872094c- Tree
444e604- Author
Kenneth Reitz <me@kennethreitz.org>- Committer
Kenneth Reitz <me@kennethreitz.org>- Parent 1
a7b5cec- Parent 2
db12a8f
5 files changed+14 added−14 removed
modified:flask/json.py+1 added-1 removed
23 unmodified lines24 except ImportError:25 from itsdangerous import json as _json26 27 28-# figure out if simplejson escapes slashes. This behavior was changed28+# Figure out if simplejson escapes slashes. This behavior was changed29 # from one version to another without reason.30 _slash_escape = '\\/' not in _json.dumps('/')31 32 211 unmodified linesmodified:flask/sessions.py+1 added-1 removed
221 unmodified lines222 return rv223 224 def get_cookie_path(self, app):225 """Returns the path for which the cookie should be valid. The226- default implementation uses the value from the SESSION_COOKIE_PATH``226+ default implementation uses the value from the ``SESSION_COOKIE_PATH``227 config var if it's set, and falls back to ``APPLICATION_ROOT`` or228 uses ``/`` if it's `None`.229 """230 return app.config['SESSION_COOKIE_PATH'] or \135 unmodified linesmodified:flask/signals.py+2 added-2 removed
35 unmodified lines36 connect = disconnect = has_receivers_for = receivers_for = \37 temporarily_connected_to = connected_to = _fail38 del _fail39 40-# the namespace for code signals. If you are not flask code, do40+# The namespace for code signals. If you are not flask code, do41 # not put signals in here. Create your own namespace instead.42 _signals = Namespace()43 44 45-# core signals. For usage examples grep the sourcecode or consult45+# Core signals. For usage examples grep the sourcecode or consult46 # the API documentation in docs/api.rst as well as docs/signals.rst47 template_rendered = _signals.signal('template-rendered')48 request_started = _signals.signal('request-started')49 request_finished = _signals.signal('request-finished')6 unmodified linesmodified:flask/views.py+4 added-4 removed
87 unmodified lines88 view.__module__ = cls.__module__89 for decorator in cls.decorators:90 view = decorator(view)91 92- # we attach the view class to the view function for two reasons:92+ # We attach the view class to the view function for two reasons:93 # first of all it allows us to easily figure out what class-based94 # view this thing came from, secondly it's also used for instantiating95 # the view class so you can actually replace it with something else96 # for testing purposes and debugging.13 unmodified lines110 methods = set(rv.methods or [])111 for key in d:112 if key in http_method_funcs:113 methods.add(key.upper())114- # if we have no method at all in there we don't want to114+ # If we have no method at all in there we don't want to115 # add a method list. (This is for instance the case for116 # the baseclass or another subclass of a base method view117 # that does not introduce new methods).118 if methods:21 unmodified lines140 app.add_url_rule('/counter', view_func=CounterAPI.as_view('counter'))141 """142 def dispatch_request(self, *args, **kwargs):143 meth = getattr(self, request.method.lower(), None)144- # if the request method is HEAD and we don't have a handler for it145- # retry with GET144+ # If the request method is HEAD and we don't have a handler for it145+ # retry with GET.146 if meth is None and request.method == 'HEAD':147 meth = getattr(self, 'get', None)148 assert meth is not None, 'Unimplemented method %r' % request.method149 return meth(*args, **kwargs)modified:flask/wrappers.py+6 added-6 removed
38 unmodified lines39 provides all of the attributes Werkzeug defines plus a few Flask40 specific ones.41 """42 43- #: the internal URL rule that matched the request. This can be43+ #: The internal URL rule that matched the request. This can be44 #: useful to inspect which methods are allowed for the URL from45 #: a before/after handler (``request.url_rule.methods``) etc.46 #:47 #: .. versionadded:: 0.648 url_rule = None49 50- #: a dict of view arguments that matched the request. If an exception50+ #: A dict of view arguments that matched the request. If an exception51 #: happened when matching, this will be `None`.52 view_args = None53 54- #: if matching the URL failed, this is the exception that will be54+ #: If matching the URL failed, this is the exception that will be55 #: raised / was raised as part of the request handling. This is56 #: usually a :exc:`~werkzeug.exceptions.NotFound` exception or57 #: something similar.58 routing_exception = None59 60- # switched by the request context until 1.0 to opt in deprecated61- # module functionality60+ # Switched by the request context until 1.0 to opt in deprecated61+ # module functionality.62 _is_old_module = False63 64 @property65 def max_content_length(self):112 unmodified lines178 179 def _load_form_data(self):180 RequestBase._load_form_data(self)181 182- # in debug mode we're replacing the files multidict with an ad-hoc182+ # In debug mode we're replacing the files multidict with an ad-hoc183 # subclass that raises a different error for key errors.184 ctx = _request_ctx_stack.top185 if ctx is not None and ctx.app.debug and \186 self.mimetype != 'multipart/form-data' and not self.files:13 unmodified lines