Skip to content

Commit

Permalink
refactor: Rename badly named positional parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
defnull committed Sep 7, 2024
1 parent 959e02d commit fcd774a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bottle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1518,8 +1518,8 @@ def copy(self):
""" Return a new :class:`Request` with a shallow :attr:`environ` copy. """
return Request(self.environ.copy())

def get(self, value, default=None):
return self.environ.get(value, default)
def get(self, key, default=None):
return self.environ.get(key, default)

def __getitem__(self, key):
return self.environ[key]
Expand Down

0 comments on commit fcd774a

Please sign in to comment.