~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/daemon.py

  • Committer: John Arbash Meinel
  • Date: 2011-03-16 12:29:36 UTC
  • Revision ID: john@arbash-meinel.com-20110316122936-u1u98hqpwyv08ry9
Import sys at the start of loggerhead/__init__.py we use it as part of startup.
And sys is always loaded, no need to avoid importing it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
            pass
54
54
 
55
55
    f = open(pidfile, 'w')
56
 
    f.write('%d\n' % os.getpid())
 
56
    f.write('%d\n' % (os.getpid(),))
57
57
    f.close()
58
58
 
59
59