summaryrefslogtreecommitdiffstats
path: root/glustolibs-io/shared_files/scripts/fd_writes.py
diff options
context:
space:
mode:
authorNigel Babu <nigelb@redhat.com>2016-11-16 17:36:15 +0530
committerJonathan Holloway <jholloway@redhat.com>2016-12-12 08:01:33 -0800
commit3070312c13e02cace3041d3429b0c31fc10b73ee (patch)
tree15b202c91c00fd93ab5559bced17b2e7fa27127f /glustolibs-io/shared_files/scripts/fd_writes.py
parentb7aea27f6662fd5b0344c6dbffcf2b9a86c1f8cc (diff)
Clean up pyflakes and pep8 errors
Change-Id: Ibdd092118d3bb912716c46fd278ef3c680a6e742 Signed-off-by: Nigel Babu <nigelb@redhat.com>
Diffstat (limited to 'glustolibs-io/shared_files/scripts/fd_writes.py')
-rwxr-xr-xglustolibs-io/shared_files/scripts/fd_writes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/glustolibs-io/shared_files/scripts/fd_writes.py b/glustolibs-io/shared_files/scripts/fd_writes.py
index 0eaf513..ba46a5f 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",