From 6cafa4c1a670883ec0f1ccdd83f59e1fee155f03 Mon Sep 17 00:00:00 2001
From: ulif <uli@gnufix.de>
Date: Wed, 22 Jul 2015 17:33:06 +0200
Subject: [PATCH] pep8.
---
diceware/__init__.py | 6 ++----
diceware/wordlist.py | 1 -
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/diceware/__init__.py b/diceware/__init__.py
index 3748916..7257f05 100644
--- a/diceware/__init__.py
+++ b/diceware/__init__.py
@@ -16,14 +16,11 @@
"""diceware -- rememberable passphrases
"""
import argparse
-import os
import pkg_resources
-import re
import sys
from random import SystemRandom
from diceware.wordlist import (
- get_wordlist_names, get_wordlist, get_wordlist_path, WORDLISTS_DIR,
- RE_WORDLIST_NAME,
+ get_wordlist, get_wordlist_path, WORDLISTS_DIR,
)
__version__ = pkg_resources.get_distribution('diceware').version
@@ -122,6 +119,7 @@ def handle_options(args):
args = parser.parse_args(args)
return args
+
def insert_special_char(word, specials=SPECIAL_CHARS, rnd=None):
"""Insert a char out of `specials` into `word`.
diff --git a/diceware/wordlist.py b/diceware/wordlist.py
index 893b2c2..210c267 100644
--- a/diceware/wordlist.py
+++ b/diceware/wordlist.py
@@ -27,7 +27,6 @@ WORDLISTS_DIR = os.path.abspath(
RE_WORDLIST_NAME = re.compile('^[a-zA-Z0-9_-]+$')
-
def get_wordlist_names():
"""Get a all names of wordlists stored locally.
"""
--
GitLab