Skip to content

Commit

Permalink
tweaked variable init to maintain Python 3.5 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
einarnn committed Jun 28, 2023
1 parent 9294b9d commit 62d1884
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ncclient/_version.py
Expand Up @@ -54,9 +54,12 @@ def get_config():
class NotThisMethod(Exception):
"""Exception raised if a method is not valid for the current scenario."""


LONG_VERSION_PY: Dict[str, str] = {}
HANDLERS: Dict[str, Dict[str, Callable]] = {}
if sys.version_info < (3, 6):
LONG_VERSION_PY = {}
HANDLERS = {}
else:
LONG_VERSION_PY: Dict[str, str] = {}
HANDLERS: Dict[str, Dict[str, Callable]] = {}


def register_vcs_handler(vcs, method): # decorator
Expand Down

0 comments on commit 62d1884

Please sign in to comment.