Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #36 from exupero/master

`.get` on environment dict for great good
  • Loading branch information...
commit f73827ffea298cc01d43e351fe819cf6e1dfd800 2 parents 869e270 + 1faf564
@daspecster authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 zipapiserver.py
View
6 zipapiserver.py
@@ -6,11 +6,7 @@
import os
HOST_NAME = 'localhost'
-
-if 'ZIPTASTIC_PORT' in os.environ:
- PORT_NUMBER = int(os.environ['ZIPTASTIC_PORT'])
-else:
- PORT_NUMBER = 80
+PORT_NUMBER = int(os.environ.get('ZIPTASTIC_PORT', 80))
class ZipAPIServerHandler(BaseHTTPServer.BaseHTTPRequestHandler):
def do_GET(s):

0 comments on commit f73827f

Please sign in to comment.
Something went wrong with that request. Please try again.