Skip to content

Commit

Permalink
HOTFIX: Make it compatible with Python 2.6 again
Browse files Browse the repository at this point in the history
  • Loading branch information
rochacbruno committed Oct 7, 2016
1 parent b626f28 commit db795b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/jsonify_examples.py
@@ -1,5 +1,5 @@
from flask import Flask, jsonify
from flask_googlemaps import Map, GoogleMaps, icons, render_template
from flask_googlemaps import Map, GoogleMaps, icons

app = Flask(__name__, template_folder="templates")
app.config['GOOGLEMAPS_KEY'] = "AIzaSyAZzeHhs-8JZ7i18MjFuM35dJHq70n3Hx4"
Expand Down
6 changes: 4 additions & 2 deletions flask_googlemaps/__init__.py
Expand Up @@ -260,7 +260,9 @@ def add_rectangle(self,
if east:
kwargs['bounds']['east'] = east

if {'north', 'east', 'south', 'west'} != set(kwargs['bounds'].keys()):
if set(
('north', 'east', 'south', 'west')
) != set(kwargs['bounds'].keys()):
raise AttributeError('rectangle bounds required to rectangles')

kwargs.setdefault('stroke_color', '#FF0000')
Expand Down Expand Up @@ -388,7 +390,7 @@ def add_circle(self,
if radius:
kwargs['radius'] = radius

if {'lat', 'lng'} != set(kwargs['center'].keys()):
if set(('lat', 'lng')) != set(kwargs['center'].keys()):
raise AttributeError('circle center coordinates required')
if 'radius' not in kwargs:
raise AttributeError('circle radius definition required')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -4,7 +4,7 @@

setup(
name='Flask-GoogleMaps',
version='0.2.3',
version='0.2.4',
license='MIT',
description='Small extension for Flask to make using Google Maps easy',
long_description=open('README.md').read(),
Expand Down

0 comments on commit db795b3

Please sign in to comment.