Skip to content

Commit 9883d10

Browse files
jwilkbitglue
authored andcommitted
Fix typos (#77)
1 parent 152ca18 commit 9883d10

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

NEWS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- Avoid traceback when exception is del-ed in except
66

77
1.2.1 (2015-05-05):
8-
- Fix false RedefinedWhileUnesed for submodule imports
8+
- Fix false RedefinedWhileUnused for submodule imports
99

1010
1.2.0 (2016-05-03):
1111
- Warn against reusing exception names after the except: block on Python 3

pyflakes/checker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def source_statement(self):
304304

305305

306306
class StarImportation(Importation):
307-
"""A binding created by an 'from x import *' statement."""
307+
"""A binding created by a 'from x import *' statement."""
308308

309309
def __init__(self, name, source):
310310
super(StarImportation, self).__init__('*', source)
@@ -799,7 +799,7 @@ def on_conditional_branch():
799799
return
800800

801801
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
803803
# be executed.
804804
return
805805

pyflakes/test/test_imports.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def test_redefinedIfElse(self):
180180

181181
def test_redefinedTry(self):
182182
"""
183-
Test that importing a module twice in an try block
183+
Test that importing a module twice in a try block
184184
does raise a warning.
185185
"""
186186
self.flakes('''
@@ -193,7 +193,7 @@ def test_redefinedTry(self):
193193

194194
def test_redefinedTryExcept(self):
195195
"""
196-
Test that importing a module twice in an try
196+
Test that importing a module twice in a try
197197
and except block does not raise a warning.
198198
"""
199199
self.flakes('''
@@ -1149,7 +1149,7 @@ def f():
11491149

11501150
class Python26Tests(TestCase):
11511151
"""
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.
11531153
"""
11541154

11551155
@skipIf(version_info < (2, 6), "Python >= 2.6 only")

pyflakes/test/test_other.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ def a():
11811181
return
11821182
''', m.UnusedVariable)
11831183

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")
11851185
def test_unusedReassignedVariable(self):
11861186
"""
11871187
Shadowing a used variable can still raise an UnusedVariable warning.
@@ -1489,7 +1489,7 @@ def test_withStatementSingleNameUndefined(self):
14891489

14901490
def test_withStatementTupleNamesUndefined(self):
14911491
"""
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
14931493
tuple-unpacking form of the C{with} statement is used before the
14941494
C{with} statement.
14951495
"""

0 commit comments

Comments
 (0)