Skip to content

Commit 535f81d

Browse files
committed
Remove Python 2.7, renamed user_check to users
1 parent 38420a5 commit 535f81d

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

.travis.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,6 @@ sudo: false
33

44
matrix:
55
include:
6-
- python: 2.7
7-
env: DJANGO="==1.8.*"
8-
- python: 2.7
9-
env: DJANGO="==1.9.*"
10-
- python: 2.7
11-
env: DJANGO="==1.10.*"
12-
- python: 2.7
13-
env: DJANGO="==1.11.*"
14-
156
- python: 3.4
167
env: DJANGO="==1.8.*"
178
- python: 3.4

martor/extensions/mention.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ class MentionPattern(markdown.inlinepatterns.Pattern):
2323

2424
def handleMatch(self, m):
2525
username = self.unescape(m.group(2))
26-
user_check = get_user_model().objects.filter(username=username, is_active=True)
26+
users = get_user_model().objects.filter(username=username, is_active=True)
2727

2828
"""Makesure `username` is registered and actived."""
2929
if MARTOR_ENABLE_CONFIGS['mention'] == 'true':
30-
if user_check.exists():
30+
if users.exists():
3131
url = '{0}{1}/'.format(MARTOR_MARKDOWN_BASE_MENTION_URL, username)
3232
el = markdown.util.etree.Element('a')
3333
el.set('href', url)

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def get_requirements():
3535
'Operating System :: OS Independent',
3636
'Programming Language :: JavaScript',
3737
'Programming Language :: Python',
38-
'Programming Language :: Python :: 2.7',
3938
'Programming Language :: Python :: 3.4',
4039
'Programming Language :: Python :: 3.5',
4140
'Programming Language :: Python :: 3.6',

0 commit comments

Comments
 (0)