From 5ec4909d2f9b6fa30a8bc03f2ee16af73e234f0f Mon Sep 17 00:00:00 2001 From: nvbn Date: Tue, 12 Apr 2016 00:37:18 +0300 Subject: [PATCH] #N/A: Minor style changes --- thefuck/shells/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/thefuck/shells/__init__.py b/thefuck/shells/__init__.py index 79fb66c8..0413f6bf 100644 --- a/thefuck/shells/__init__.py +++ b/thefuck/shells/__init__.py @@ -22,8 +22,7 @@ shells = {'bash': Bash, def _get_shell(): proc = Process(os.getpid()) - while (proc is not None): - name = None + while proc is not None: try: name = proc.name() except TypeError: