Skip to content
Permalink
Browse files

Lint cleanup, switch to gflags.

git-svn-id: http://google-mysql-tools.googlecode.com/svn/trunk@343 960bbd1a-3921-0410-93bb-a35bc832efea
  • Loading branch information...
flamingcow@google.com
flamingcow@google.com committed Feb 11, 2013
1 parent dcb1d25 commit cc3999d2daa39030d8ecfe3bd5ce8e3b79c0d453
Showing with 9 additions and 8 deletions.
  1. +9 −8 replication_heartbeat.py
@@ -1,6 +1,6 @@
#!/usr/bin/python2.6
#!/usr/bin/python2
#
# Copyright 2011 Google Inc.
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -38,16 +38,17 @@
import signal
import time

import gflags

from pylib import app
from pylib import db
from pylib import flags

FLAGS = flags.FLAGS
FLAGS = gflags.FLAGS

flags.DEFINE_integer('connection_lifetime', 60, 'Time (s) between reconnects '
'to the database')
flags.DEFINE_string('dbspec', None, 'DBSpec of database to connect to')
flags.DEFINE_float('interval', 1.0, 'Interval in (s) of heartbeat pulse.')
gflags.DEFINE_integer('connection_lifetime', 60, 'Time (s) between reconnects '
'to the database')
gflags.DEFINE_string('dbspec', None, 'DBSpec of database to connect to')
gflags.DEFINE_float('interval', 1.0, 'Interval in (s) of heartbeat pulse.')


def BeatOnce(dbh, interval):

0 comments on commit cc3999d

Please sign in to comment.
You can’t perform that action at this time.