Skip to content

Commit 441f80d

Browse files
committed
remove unnecessary global variable
1 parent 4c0bf36 commit 441f80d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

browsermobproxy/server.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
import socket
44
import time
55
import platform
6-
7-
system = platform.system().lower()
8-
9-
106
from client import Client
117

128

@@ -22,7 +18,7 @@ def __init__(self, path, options={}):
2218
More items will be added in the future.
2319
This defaults to an empty dictionary
2420
"""
25-
if platform.system == 'windows':
21+
if platform.system() == 'Windows':
2622
if not path.endswith('.bat'):
2723
path += '.bat'
2824

@@ -34,7 +30,7 @@ def __init__(self, path, options={}):
3430
self.port = options.get('port', 8080)
3531
self.process = None
3632

37-
if platform.system == 'darwin':
33+
if platform.system() == 'Darwin':
3834
self.command = ['sh']
3935
else:
4036
self.command = []

0 commit comments

Comments
 (0)