diff options
author | Andreas Rogge <andreas.rogge@bareos.com> | 2020-01-21 12:47:05 +0300 |
---|---|---|
committer | Andreas Rogge <andreas.rogge@bareos.com> | 2020-01-21 12:47:05 +0300 |
commit | 5ff4dbd01ca0866147d810b25b72e83e59af98b9 (patch) | |
tree | 97a5161de98e91e82f72f1d12c7a083506cb97c5 /python-bareos | |
parent | 58ee160589de2378562c2d52134271af2c031a14 (diff) |
python-bareos: nicer base64_digits syntax
Diffstat (limited to 'python-bareos')
-rw-r--r-- | python-bareos/bareos/util/bareosbase64.py | 69 |
1 files changed, 3 insertions, 66 deletions
diff --git a/python-bareos/bareos/util/bareosbase64.py b/python-bareos/bareos/util/bareosbase64.py index 1bb986d8b..40f35afbf 100644 --- a/python-bareos/bareos/util/bareosbase64.py +++ b/python-bareos/bareos/util/bareosbase64.py @@ -9,72 +9,9 @@ class BareosBase64(object): Bacula and therefore Bareos specific implementation of a base64 decoder """ - base64_digits = [ - "A", - "B", - "C", - "D", - "E", - "F", - "G", - "H", - "I", - "J", - "K", - "L", - "M", - "N", - "O", - "P", - "Q", - "R", - "S", - "T", - "U", - "V", - "W", - "X", - "Y", - "Z", - "a", - "b", - "c", - "d", - "e", - "f", - "g", - "h", - "i", - "j", - "k", - "l", - "m", - "n", - "o", - "p", - "q", - "r", - "s", - "t", - "u", - "v", - "w", - "x", - "y", - "z", - "0", - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "+", - "/", - ] + base64_digits = list( + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" + ) def __init__(self): """ |