Browse Source

Not import tty and termios when in nt os (#563)

Modules tty and termios will not be used in Windows

Fix lesspass/lesspass#556
pull/568/head
AT_ 4 years ago
committed by GitHub
parent
commit
473b253971
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      cli/lesspass/fingerprint.py

+ 3
- 2
cli/lesspass/fingerprint.py View File

@@ -3,12 +3,13 @@ import hashlib
import sys import sys
import os import os
import random import random
import tty
import termios
import threading import threading


if os.name == "nt": if os.name == "nt":
import msvcrt import msvcrt
else:
import tty
import termios




icon_names = [ icon_names = [


Loading…
Cancel
Save