Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

archive: refactoring: rename

The name 'dict' conflicts build-in name 'dict'.

Changeset dbfd49408d2d

Parent c24257de255a

by Yuki KODAMA

Changes to one file · Browse files at dbfd49408d2d Showing diff from parent c24257de255a Diff from another changeset...

 
153
154
155
156
157
158
159
 
 
160
161
162
 
 
163
164
165
 
 
166
167
168
 
 
169
170
171
172
173
174
175
 
 
 
176
177
178
 
153
154
155
 
156
 
 
157
158
159
 
 
160
161
162
 
 
163
164
165
 
 
166
167
168
 
 
 
 
 
 
169
170
171
172
173
174
@@ -153,26 +153,22 @@
    def get_selected_archive_type(self):   """Return a dictionary describing the selected archive type""" - dict = {}   if self.tarradio.get_active(): - dict['type'] = 'tar' - dict['filter'] = ((_('Tar archives'), '*.tar'),) + return {'type': 'tar', + 'filter': ((_('Tar archives'), '*.tar'),)}   elif self.tbz2radio.get_active(): - dict['type'] = 'tbz2' - dict['filter'] = ((_('Bzip2 tar archives'), '*.tbz2'),) + return {'type': 'tbz2', + 'filter': ((_('Bzip2 tar archives'), '*.tbz2'),)}   elif self.tgzradio.get_active(): - dict['type'] = 'tgz' - dict['filter'] = ((_('Gzip tar archives'), '*.tgz'),) + return {'type': 'tgz', + 'filter': ((_('Gzip tar archives'), '*.tgz'),)}   elif self.uzipradio.get_active(): - dict['type'] = 'uzip' - dict['filter'] = ((_('Uncompressed zip archives'), '*.uzip'),) + return {'type': 'uzip', + 'filter': ((_('Uncompressed zip archives'), '*.uzip'),)}   elif self.zipradio.get_active(): - dict['type'] = 'zip' - dict['filter'] = ((_('Compressed zip archives'), '*.zip'),) - else: - dict['type'] = 'files' - - return dict + return {'type': 'zip', + 'filter': ((_('Compressed zip archives'), '*.zip'),)} + return {'type': 'files', 'filter': None}     def browse_clicked(self, button):   """Select the destination directory or file"""