Skip to content

Commit 9ceec4c

Browse files
committed
Remove out-of-date comment from Context.request.
1 parent 3cc87b8 commit 9ceec4c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

splunklib/binding.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -710,16 +710,6 @@ def request(self, path_segment, method="GET", headers=None, body="",
710710
path = self.authority \
711711
+ self._abspath(path_segment, owner=owner,
712712
app=app, sharing=sharing)
713-
# all_headers can't be named headers, due to how
714-
# Python implements closures. In particular:
715-
# def f(x):
716-
# def g():
717-
# x = x + "a"
718-
# return x
719-
# return g()
720-
# throws UnboundLocalError, since x must be either a member of
721-
# f's local namespace or g's, and cannot switch between them
722-
# during the run of the function.
723713
all_headers = headers + self._auth_headers
724714
logging.debug("%s request to %s (headers: %s, body: %s)",
725715
method, path, str(all_headers), repr(body))

0 commit comments

Comments
 (0)