Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@ matrix:
env: TOXENV=py,codecov
- python: 3.4
env: TOXENV=py,codecov
- python: 3.3
env: TOXENV=py,py-lowest,codecov
- python: 2.7
env: TOXENV=py,codecov
- python: 2.6
env: TOXENV=py,py-lowest,codecov
- python: pypy
env: TOXENV=py,codecov
- python: nightly
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

# General information about the project.
project = u'Flask-SQLAlchemy'
copyright = u'2010 - {0}, Armin Ronacher'.format(datetime.utcnow().year)
copyright = u'2010 - {}, Armin Ronacher'.format(datetime.utcnow().year)

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down
2 changes: 1 addition & 1 deletion examples/hello.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from datetime import datetime
from flask import Flask, request, flash, url_for, redirect, \
render_template, abort
render_template
from flask_sqlalchemy import SQLAlchemy


Expand Down
2 changes: 1 addition & 1 deletion flask_sqlalchemy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from sqlalchemy.orm.session import Session as SessionBase

from flask_sqlalchemy.model import Model
from ._compat import itervalues, string_types, to_str, xrange
from ._compat import itervalues, string_types, xrange
from .model import DefaultMeta

__version__ = '2.3.2'
Expand Down
4 changes: 2 additions & 2 deletions flask_sqlalchemy/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class Model(object):
def __repr__(self):
identity = inspect(self).identity
if identity is None:
pk = "(transient {0})".format(id(self))
pk = "(transient {})".format(id(self))
else:
pk = ', '.join(to_str(value) for value in identity)
return '<{0} {1}>'.format(type(self).__name__, pk)
return '<{} {}>'.format(type(self).__name__, pk)
1 change: 0 additions & 1 deletion scripts/make-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def parse_changelog():
match = re.search('^Version\s+(.*)', line.strip())
if match is None:
continue
length = len(match.group(1))
version = match.group(1).strip()
if lineiter.next().count('-') != len(match.group(0)):
continue
Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_query_paginate(app, db, Todo):
@app.route('/')
def index():
p = Todo.query.paginate()
return '{0} items retrieved'.format(len(p.items))
return '{} items retrieved'.format(len(p.items))

c = app.test_client()
# request default
Expand Down
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist =
py{36,35,34,33,27,26,py}
py{36,33,27,26,py}-lowest
py{36,35,34,27,py}
py{36,34,27,py}-lowest
docs_html
coverage_report

Expand Down Expand Up @@ -39,7 +39,6 @@ deps =
codecov
skip_install = true
commands =
python -c 'import sys, pip; sys.version_info < (2, 7) and pip.main(["install", "argparse", "-q"])'
coverage combine
coverage report
codecov