Skip to content

Commit db795b3

Browse files
committed
HOTFIX: Make it compatible with Python 2.6 again
1 parent b626f28 commit db795b3

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

examples/jsonify_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from flask import Flask, jsonify
2-
from flask_googlemaps import Map, GoogleMaps, icons, render_template
2+
from flask_googlemaps import Map, GoogleMaps, icons
33

44
app = Flask(__name__, template_folder="templates")
55
app.config['GOOGLEMAPS_KEY'] = "AIzaSyAZzeHhs-8JZ7i18MjFuM35dJHq70n3Hx4"

flask_googlemaps/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,9 @@ def add_rectangle(self,
260260
if east:
261261
kwargs['bounds']['east'] = east
262262

263-
if {'north', 'east', 'south', 'west'} != set(kwargs['bounds'].keys()):
263+
if set(
264+
('north', 'east', 'south', 'west')
265+
) != set(kwargs['bounds'].keys()):
264266
raise AttributeError('rectangle bounds required to rectangles')
265267

266268
kwargs.setdefault('stroke_color', '#FF0000')
@@ -388,7 +390,7 @@ def add_circle(self,
388390
if radius:
389391
kwargs['radius'] = radius
390392

391-
if {'lat', 'lng'} != set(kwargs['center'].keys()):
393+
if set(('lat', 'lng')) != set(kwargs['center'].keys()):
392394
raise AttributeError('circle center coordinates required')
393395
if 'radius' not in kwargs:
394396
raise AttributeError('circle radius definition required')

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name='Flask-GoogleMaps',
7-
version='0.2.3',
7+
version='0.2.4',
88
license='MIT',
99
description='Small extension for Flask to make using Google Maps easy',
1010
long_description=open('README.md').read(),

0 commit comments

Comments
 (0)