File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,15 @@ def __init__(self, precision=None):
17
17
else :
18
18
# Default to tenths of a second.
19
19
self .__precision__ = 1
20
- return
21
20
22
21
def start (self ):
23
22
# Start the stopwatch.
24
23
if not self .state == "Stopped" :
25
24
print ("Stopwatch is already running." )
26
- return
25
+ return None
26
+
27
27
self .__startTime__ = time .time ()
28
28
self .state = "Started"
29
- return
30
29
31
30
def lap (self ):
32
31
# Start tracking a new lap.
@@ -35,7 +34,6 @@ def lap(self):
35
34
self .__currentLap__ = 0
36
35
self .__startTime__ = time .time ()
37
36
self .__update__ ()
38
- return
39
37
40
38
def stop (self ):
41
39
# Stop/Pause the stopwatch without clearing it.
@@ -44,7 +42,6 @@ def stop(self):
44
42
else :
45
43
self .__update__ ()
46
44
self .state = "Stopped"
47
- return
48
45
49
46
def reset (self ):
50
47
# Reset the entire stopwatch back to zero.
@@ -53,7 +50,6 @@ def reset(self):
53
50
self .laps = []
54
51
self .summary = None
55
52
self .state = "Stopped"
56
- return
57
53
58
54
def __update__ (self ):
59
55
# Internal function to update stopwatch summary.
@@ -92,5 +88,4 @@ def __update__(self):
92
88
seconds = round (self .__currentLap__ , self .__precision__ )
93
89
)
94
90
).rjust (7 )
95
- )
96
- return
91
+ )
Original file line number Diff line number Diff line change @@ -14,10 +14,8 @@ def readTextFile(textFilename):
14
14
inputFile = open (os .path .join (sys .path [0 ], textFilename ), "r" )
15
15
available_subdomains = inputFile .read ().splitlines ()
16
16
17
- inputFile .close ()
18
- return
19
-
20
-
17
+ inputFile .close ()\
18
+
21
19
def findSubdomains (userDomain , available_subdomains , size ):
22
20
"""This function is used to find possible subdomains"""
23
21
subdomains = []
You can’t perform that action at this time.
0 commit comments