Skip to content

Commit f71c435

Browse files
committed
pep8 changes
1 parent 285851c commit f71c435

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

virtualenvwrapper/hook_loader.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import pkg_resources
1717

18+
1819
class GroupWriteRotatingFileHandler(logging.handlers.RotatingFileHandler):
1920
"""Taken from http://stackoverflow.com/questions/1407474/does-python-logging-handlers-rotatingfilehandler-allow-creation-of-a-group-writa
2021
"""
@@ -24,6 +25,7 @@ def _open(self):
2425
os.umask(prevumask)
2526
return rtv
2627

28+
2729
def main():
2830
parser = optparse.OptionParser(
2931
usage='usage: %prog [options] <hook> [<arguments>]',
@@ -68,7 +70,7 @@ def main():
6870
dest='names',
6971
default=[],
7072
)
71-
parser.disable_interspersed_args() # stop when we hit an option without an '-'
73+
parser.disable_interspersed_args() # stop when we hit an option without an '-'
7274
options, args = parser.parse_args()
7375

7476
root_logger = logging.getLogger('')
@@ -86,10 +88,10 @@ def main():
8688

8789
# Send higher-level messages to the console, too
8890
console = logging.StreamHandler()
89-
console_level = [ logging.WARNING,
90-
logging.INFO,
91-
logging.DEBUG,
92-
][options.verbose_level]
91+
console_level = [logging.WARNING,
92+
logging.INFO,
93+
logging.DEBUG,
94+
][options.verbose_level]
9395
console.setLevel(console_level)
9496
formatter = logging.Formatter('%(name)s %(message)s')
9597
console.setFormatter(formatter)

0 commit comments

Comments
 (0)