diff --git a/swift/common/middleware/x_profile/html_viewer.py b/swift/common/middleware/x_profile/html_viewer.py index 416ba01165..91ad8f66a2 100644 --- a/swift/common/middleware/x_profile/html_viewer.py +++ b/swift/common/middleware/x_profile/html_viewer.py @@ -313,55 +313,55 @@ class HTMLViewer(object): return empty_description, headers try: stats = Stats2(*log_files) - if not fulldirs: - stats.strip_dirs() - stats.sort_stats(sort) - nfl_filter_esc =\ - nfl_filter.replace('(', '\(').replace(')', '\)') - amount = [nfl_filter_esc, limit] if nfl_filter_esc else [limit] - profile_html = self.generate_stats_html(stats, self.app_path, - profile_id, *amount) - description = "Profiling information is generated by using\ - '%s' profiler." % self.profile_module - sort_repl = '' % (p, p) - for p in self.profile_log.get_all_pids()]) - profile_element = string.Template(profile_tmpl).substitute( - {'profile_list': plist}) - profile_repl = '' % (p, p) + for p in self.profile_log.get_all_pids()]) + profile_element = string.Template(profile_tmpl).substitute( + {'profile_list': plist}) + profile_repl = '