Permalink
Browse files

Fix syntax errors in r760

  • Loading branch information...
1 parent 707eb31 commit 7356082f150595ffaf6c1548ec2bf08209bcfd7d @mleinart mleinart committed Apr 23, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 carbon/lib/carbon/aggregator/rules.py
  2. +2 −2 carbon/lib/carbon/rewrite.py
  3. +1 −1 carbon/lib/carbon/writer.py
@@ -1,6 +1,6 @@
import time
import re
-from os.path import getmtime
+from os.path import exists, getmtime
from twisted.internet.task import LoopingCall
from carbon import log
from carbon.aggregator.buffers import BufferManager
@@ -21,7 +21,7 @@ def read_from(self, rules_file):
self.read_rules()
self.read_task.start(10, now=False)
- def read_rules(self)
+ def read_rules(self):
if not exists(self.rules_file):
self.clear()
return
@@ -31,7 +31,7 @@ def read_rules(self)
mtime = getmtime(self.rules_file)
except:
log.err("Failed to get mtime of %s" % self.rules_file)
- return:
+ return
if mtime <= self.rules_last_read:
return
@@ -170,7 +170,7 @@ def reloadStorageSchemas():
log.msg("Failed to reload storage schemas")
log.err()
-def reloadAggregationStorageSchemas():
+def reloadAggregationSchemas():
global agg_schemas
try:
schemas = loadAggregationSchemas()

0 comments on commit 7356082

Please sign in to comment.