Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix syntax errors in r760

  • Loading branch information...
commit 7356082f150595ffaf6c1548ec2bf08209bcfd7d 1 parent 707eb31
@mleinart mleinart authored
View
2  carbon/lib/carbon/aggregator/rules.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
View
4 carbon/lib/carbon/rewrite.py
@@ -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
View
2  carbon/lib/carbon/writer.py
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.