diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-08-08 15:15:58 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-08-08 15:15:58 +0100 |
commit | 805c971836354d708d48efc3891facdae06853e4 (patch) | |
tree | 2a95d1d6c1d987c531082e3da231cdc1166fbb0e /summain | |
parent | fe069d210aa723eb93707fc5aa5d0a80ae3e943d (diff) | |
download | summain-805c971836354d708d48efc3891facdae06853e4.tar.gz |
Get rid of unnecessary code.
Diffstat (limited to 'summain')
-rwxr-xr-x | summain | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -114,23 +114,8 @@ class Summain(cliapp.Application): yield root def process_args(self, args): - relative = self.settings['relative-paths'] - exclude = self.settings['exclude'] - nn = summainlib.NumberNormalizer() - if self.settings['mangle-paths']: - pn = summainlib.PathNormalizer(self.settings['secret']) - else: - pn = summainlib.SamePath() - checksums = [x.upper() for x in self.settings['checksum'] or ['SHA1']] - o = summainlib.FilesystemObject('.', nn, pn, exclude) - for checksum in checksums: - try: - o[checksum] - except KeyError: - raise cliapp.AppException('Unknown checksum %s' % checksum) - fmt = self.new_formatter(checksums) for name, o in self.find_roots(args): fmt.write_object(name, o) |