Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
vidartf committed Dec 7, 2022
1 parent e763216 commit 7b2a20e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jupyter_server/serverapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2053,7 +2053,7 @@ def init_resources(self):
)
return

old_soft, old_hard = resource.getrlimit(resource.RLIMIT_NOFILE) # noqa
old_soft, old_hard = resource.getrlimit(resource.RLIMIT_NOFILE)
soft = self.min_open_files_limit
hard = old_hard
if old_soft < soft:
Expand All @@ -2064,7 +2064,7 @@ def init_resources(self):
old_soft, soft, old_hard, hard
)
)
resource.setrlimit(resource.RLIMIT_NOFILE, (soft, hard)) # noqa
resource.setrlimit(resource.RLIMIT_NOFILE, (soft, hard))

def _get_urlparts(self, path=None, include_token=False):
"""Constructs a urllib named tuple, ParseResult,
Expand Down

0 comments on commit 7b2a20e

Please sign in to comment.