Skip to content

Commit b00a883

Browse files
committed
Remove unnecessary global declaration in stem_tor-example.py
Fixes flake8 F824 error - global result is only read, not assigned, so the global declaration is unnecessary and confusing.
1 parent 12137c1 commit b00a883

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

python-examples/stem_tor-example.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
@app.route('/')
1212
def index():
13-
global result
1413
hoster = result.hostname
1514
return "<body style='font-family:monospace;'>\
1615
<p>Hi Grandma! {}</p><pre>{}</pre</body>".format(hoster)

0 commit comments

Comments
 (0)