Skip to content

Commit

Permalink
more lintfactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
David Miller committed Nov 8, 2009
1 parent dfeb4ce commit 1864c40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
""" Syncs dotfiles across machines
Uses a Github account to store file versions & merge"""
9 changes: 5 additions & 4 deletions dotfiles.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
""" Syncs dotfiles across machines """
""" Syncs dotfiles across machines
Uses a Github account to store file versions & merge"""
import logging
import os
import re
Expand Down Expand Up @@ -207,12 +208,12 @@ def __init__( self, args=None ):

# Define logging behaviour

LOG_FILENAME = '.dotfiles.log'
# add_logger = genlog.gen_log( 'add', LOG_FILENAME )
log_filename = '.dotfiles.log'
# add_logger = genlog.gen_log( 'add', log_filename )

logformat = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
formatter = logging.Formatter( logformat )
file_handler = logging.FileHandler( LOG_FILENAME )
file_handler = logging.FileHandler( log_filename )
file_handler.setFormatter( formatter )
file_handler.setLevel( logging.ERROR )
console_handler = logging.StreamHandler()
Expand Down

0 comments on commit 1864c40

Please sign in to comment.