Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #36 from exupero/master

`.get` on environment dict for great good
  • Loading branch information...
commit f73827ffea298cc01d43e351fe819cf6e1dfd800 2 parents 869e270 + 1faf564
Thomas Schultz authored

Showing 1 changed file with 1 addition and 5 deletions. Show diff stats Hide diff stats

  1. +1 5 zipapiserver.py
6 zipapiserver.py
@@ -6,11 +6,7 @@
6 6 import os
7 7
8 8 HOST_NAME = 'localhost'
9   -
10   -if 'ZIPTASTIC_PORT' in os.environ:
11   - PORT_NUMBER = int(os.environ['ZIPTASTIC_PORT'])
12   -else:
13   - PORT_NUMBER = 80
  9 +PORT_NUMBER = int(os.environ.get('ZIPTASTIC_PORT', 80))
14 10
15 11 class ZipAPIServerHandler(BaseHTTPServer.BaseHTTPRequestHandler):
16 12 def do_GET(s):

0 comments on commit f73827f

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