From 03731dd2d3aac0c9610c3b17d28f6821343fc8ed Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Sat, 13 Dec 2014 10:55:57 -0500 Subject: Port some of the commands. --- src/mailman/commands/cli_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mailman/commands/cli_import.py') diff --git a/src/mailman/commands/cli_import.py b/src/mailman/commands/cli_import.py index b53faea96..7b18b888c 100644 --- a/src/mailman/commands/cli_import.py +++ b/src/mailman/commands/cli_import.py @@ -77,7 +77,7 @@ class Import21: assert len(args.pickle_file) == 1, ( 'Unexpected positional arguments: %s' % args.pickle_file) filename = args.pickle_file[0] - with open(filename) as fp: + with open(filename, 'rb') as fp: while True: try: config_dict = cPickle.load(fp) -- cgit v1.2.3-70-g09d2