diff options
| author | bwarsaw | 2007-03-21 21:16:56 +0000 |
|---|---|---|
| committer | bwarsaw | 2007-03-21 21:16:56 +0000 |
| commit | cdefb7ba2792083a520f8dc40993a0f946ad3434 (patch) | |
| tree | 9db25722807381a8bae8cf28e4354c4aa68ffb5d /Mailman/Queue/Switchboard.py | |
| parent | fc51f4c9de9751c03fb21394b393253e8c225453 (diff) | |
| download | mailman-cdefb7ba2792083a520f8dc40993a0f946ad3434.tar.gz mailman-cdefb7ba2792083a520f8dc40993a0f946ad3434.tar.zst mailman-cdefb7ba2792083a520f8dc40993a0f946ad3434.zip | |
Diffstat (limited to 'Mailman/Queue/Switchboard.py')
| -rw-r--r-- | Mailman/Queue/Switchboard.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Mailman/Queue/Switchboard.py b/Mailman/Queue/Switchboard.py index 43d121f6f..fabb1d099 100644 --- a/Mailman/Queue/Switchboard.py +++ b/Mailman/Queue/Switchboard.py @@ -94,7 +94,9 @@ class Switchboard: else: protocol = 0 msgsave = cPickle.dumps(str(_msg), protocol) - hashfood = msgsave + str(listname) + `now` + # listname is unicode but the input to the hash function must be an + # 8-bit string (eventually, a bytes object). + hashfood = msgsave + listname.encode('utf-8') + `now` # Encode the current time into the file name for FIFO sorting in # files(). The file name consists of two parts separated by a `+': # the received time for this message (i.e. when it first showed up on |
