Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/activity.py b/activity.py
index 58f70eb..0f907e4 100644
--- a/activity.py
+++ b/activity.py
@@ -490,10 +490,8 @@ class SimpleGraph(activity.Activity):
"StopWatch")
if boolean:
- reader = StopWatch()
-
f = open(file_path)
- reader.set_data(f)
+ reader = StopWatch(f)
stopwatchs_list, count = reader.get_stopwatchs_with_marks()
@@ -530,10 +528,8 @@ class SimpleGraph(activity.Activity):
'Measure')
if boolean:
- reader = Measure()
f = open(file_path)
-
- reader.set_data(f)
+ reader = Measure(f)
self.v_label.entry.set_text(_('Values'))
self.h_label.entry.set_text(_('Samples'))