Skip to content
Snippets Groups Projects
  1. Feb 09, 2018
  2. Feb 07, 2018
  3. Jan 27, 2018
  4. Jan 01, 2018
  5. Aug 31, 2017
    • ulif's avatar
      Use docstring only to document function. · 9b7e8a14
      ulif authored
      The documenting comment (starting with ``#: ``) is neccessary for vars
      and constants only. All these comments are used by `Sphinx` to generate
      documentation.
      9b7e8a14
    • ulif's avatar
      Reorder function. · 2694974e
      ulif authored
      Put consts at top of file and functions below. The code is better
      readable this way.
      2694974e
  6. Aug 28, 2017
    • drebs's avatar
      use function to get wordlists path · 07e497e5
      drebs authored
      The path to wordlist files is hardcoded in the generated sphinx
      documentation and because it may differ depending on how the package is
      installed this creates different problems:
      
        - the path hardcoded in the online api documentation may differ from
          the one in each installation, leading to incorrect information
          provided to the user of the api.
      
        - packaging diceware documentation to specific operating systems may
          generate unreproducible packages.
      
      This commit replaces the variable WORDLISTS_DIR by a function called
      get_wordlists_dir() that delays the construction of the path instead of
      doing it during module loading.
      07e497e5
  7. Jun 06, 2017
  8. Jun 04, 2017
  9. May 31, 2017
    • ulif's avatar
      Make `infile` arg a string. · ad5c04f2
      ulif authored
      The `argparse.FileType` type is considered bad style. Cf.
      http://bugs.python.org/issue13824. With this FileType we cannot tell
      when to close a file after reading (which should be done for most
      regular wordlists) or not (in case of input from stdin).
      ad5c04f2
  10. May 29, 2017
  11. May 28, 2017
  12. May 26, 2017
  13. May 23, 2017
  14. Apr 24, 2017
    • ulif's avatar
      Activate logging. · de9ebfeb
      ulif authored
      Logging was available all the time but not yet activated. We now
      enable logging when the main script is executed. This makes the
      `verbose` commandline option functional.
      de9ebfeb
    • ulif's avatar
      Extend docstring. · 5ee8e4d4
      ulif authored
      5ee8e4d4
    • ulif's avatar
      Fix typos. · 1030a786
      ulif authored
      1030a786
  15. Mar 04, 2017
    • ulif's avatar
      Print a hint when discarding rolls. · 6ddfc483
      ulif authored
      When using `realdice` randomness source and picking values out of short
      sequences (sequences shorter than the number of dice sides), we might
      require additional dice throws (if a value rolled is not in range of
      sequence length). We now print a hint when this happens.
      6ddfc483
  16. Mar 03, 2017
  17. Feb 27, 2017
  18. Feb 18, 2017
  19. Jan 06, 2017
  20. Dec 17, 2016
  21. Aug 03, 2016
  22. Aug 02, 2016
  23. Jun 08, 2016
  24. May 18, 2016
    • ulif's avatar
      Set lowest log level by default. · 6d15eab7
      ulif authored
      As we can only increase verbosity with commandline flags, we
      should set the least verbose log level by default.
      6d15eab7
  25. May 17, 2016
  26. May 12, 2016
Loading