From 3070312c13e02cace3041d3429b0c31fc10b73ee Mon Sep 17 00:00:00 2001 From: Nigel Babu Date: Wed, 16 Nov 2016 17:36:15 +0530 Subject: Clean up pyflakes and pep8 errors Change-Id: Ibdd092118d3bb912716c46fd278ef3c680a6e742 Signed-off-by: Nigel Babu --- glustolibs-io/shared_files/scripts/fd_writes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'glustolibs-io/shared_files/scripts/fd_writes.py') diff --git a/glustolibs-io/shared_files/scripts/fd_writes.py b/glustolibs-io/shared_files/scripts/fd_writes.py index 0eaf51375..ba46a5f7d 100755 --- a/glustolibs-io/shared_files/scripts/fd_writes.py +++ b/glustolibs-io/shared_files/scripts/fd_writes.py @@ -17,7 +17,6 @@ import argparse import random -import subprocess import os import time import string @@ -72,7 +71,7 @@ def create_dir(dir_path): if not path_exists(dir_abs_path): try: os.makedirs(dir_abs_path) - except (OSError, IOError) as e: + except (OSError, IOError): print "Unable to create dir: %s" % dir_abs_path return 1 return 0 @@ -190,6 +189,7 @@ def fd_writes(args): each_process.join() return 0 + if __name__ == "__main__": parser = argparse.ArgumentParser( description="Program to perfrom fd based writes on files for time t", -- cgit