Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
aef5b7a2
Commit
aef5b7a2
authored
Aug 11, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python brace format for same check as well, issue #345
parent
27929da1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
trans/checks/same.py
trans/checks/same.py
+4
-1
No files found.
trans/checks/same.py
View file @
aef5b7a2
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
from
django.utils.translation
import
ugettext_lazy
as
_
from
django.utils.translation
import
ugettext_lazy
as
_
from
trans.checks.base
import
TargetCheck
from
trans.checks.base
import
TargetCheck
from
trans.checks.format
import
(
from
trans.checks.format
import
(
PYTHON_PRINTF_MATCH
,
PHP_PRINTF_MATCH
,
C_PRINTF_MATCH
PYTHON_PRINTF_MATCH
,
PHP_PRINTF_MATCH
,
C_PRINTF_MATCH
,
PYTHON_BRACE_MATCH
,
)
)
from
django.core.validators
import
email_re
from
django.core.validators
import
email_re
import
re
import
re
...
@@ -503,6 +504,8 @@ class SameCheck(TargetCheck):
...
@@ -503,6 +504,8 @@ class SameCheck(TargetCheck):
'''
'''
if '
python
-
format
' in flags:
if '
python
-
format
' in flags:
regex = PYTHON_PRINTF_MATCH
regex = PYTHON_PRINTF_MATCH
elif '
python
-
brace
-
format
' in flags:
regex = PYTHON_BRACE_MATCH
elif '
php
-
format
' in flags:
elif '
php
-
format
' in flags:
regex = PHP_PRINTF_MATCH
regex = PHP_PRINTF_MATCH
elif '
c
-
format
' in flags:
elif '
c
-
format
' in flags:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment