File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 5
5
- Avoid traceback when exception is del-ed in except
6
6
7
7
1.2.1 (2015-05-05):
8
- - Fix false RedefinedWhileUnesed for submodule imports
8
+ - Fix false RedefinedWhileUnused for submodule imports
9
9
10
10
1.2.0 (2016-05-03):
11
11
- Warn against reusing exception names after the except: block on Python 3
Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ def source_statement(self):
304
304
305
305
306
306
class StarImportation (Importation ):
307
- """A binding created by an 'from x import *' statement."""
307
+ """A binding created by a 'from x import *' statement."""
308
308
309
309
def __init__ (self , name , source ):
310
310
super (StarImportation , self ).__init__ ('*' , source )
@@ -799,7 +799,7 @@ def on_conditional_branch():
799
799
return
800
800
801
801
if on_conditional_branch ():
802
- # We can not predict if this conditional branch is going to
802
+ # We cannot predict if this conditional branch is going to
803
803
# be executed.
804
804
return
805
805
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ def test_redefinedIfElse(self):
180
180
181
181
def test_redefinedTry (self ):
182
182
"""
183
- Test that importing a module twice in an try block
183
+ Test that importing a module twice in a try block
184
184
does raise a warning.
185
185
"""
186
186
self .flakes ('''
@@ -193,7 +193,7 @@ def test_redefinedTry(self):
193
193
194
194
def test_redefinedTryExcept (self ):
195
195
"""
196
- Test that importing a module twice in an try
196
+ Test that importing a module twice in a try
197
197
and except block does not raise a warning.
198
198
"""
199
199
self .flakes ('''
@@ -1149,7 +1149,7 @@ def f():
1149
1149
1150
1150
class Python26Tests (TestCase ):
1151
1151
"""
1152
- Tests for checking of syntax which is valid in PYthon 2.6 and newer.
1152
+ Tests for checking of syntax which is valid in Python 2.6 and newer.
1153
1153
"""
1154
1154
1155
1155
@skipIf (version_info < (2 , 6 ), "Python >= 2.6 only" )
Original file line number Diff line number Diff line change @@ -1181,7 +1181,7 @@ def a():
1181
1181
return
1182
1182
''' , m .UnusedVariable )
1183
1183
1184
- @skip ("todo: Difficult because it does 't apply in the context of a loop" )
1184
+ @skip ("todo: Difficult because it doesn 't apply in the context of a loop" )
1185
1185
def test_unusedReassignedVariable (self ):
1186
1186
"""
1187
1187
Shadowing a used variable can still raise an UnusedVariable warning.
@@ -1489,7 +1489,7 @@ def test_withStatementSingleNameUndefined(self):
1489
1489
1490
1490
def test_withStatementTupleNamesUndefined (self ):
1491
1491
"""
1492
- An undefined name warning is emitted if a name first defined by a the
1492
+ An undefined name warning is emitted if a name first defined by the
1493
1493
tuple-unpacking form of the C{with} statement is used before the
1494
1494
C{with} statement.
1495
1495
"""
You can’t perform that action at this time.
0 commit comments