Imports are easier to follow if there they are sorted alphabetically,
and grouped by:
- __future__,
- stdlib,
- third party,
- current project,
- local imports.
-import xkcdpass.xkcd_password as xp
import random
+import xkcdpass.xkcd_password as xp
+
def random_capitalisation(s, chance):
new_str = []
from xkcdpass import xkcd_password as xp
+
from django.http import JsonResponse
#!/usr/bin/env python
-import sys
import fileinput
import random
+import sys
# generate a list of symbols via ascii code
SYMBOLS = [str(unichr(i)) for i in range(33, 65)]
from setuptools import setup
-
setup(
name='xkcdpass',
version='1.14.3',
import re
-import sys
import subprocess
+import sys
import unittest
from xkcdpass import xkcd_password
-
WORDFILE = 'xkcdpass/static/legacy'
#!/usr/bin/env python
# encoding: utf-8
-import random
+import argparse
+import math
import os
import os.path
-import argparse
+import random
import re
-import math
import sys
__LICENSE__ = """