Skip to content

Commit 69d3480

Browse files
committed
Merge pull request #606 from jsoref/spelling
spelling fixes
2 parents ae12e15 + eb91dcf commit 69d3480

17 files changed

+39
-39
lines changed

CHANGELOG

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ New features:
101101
* #354: Edit config file from within bpython.
102102
* #382: Partial support for pasting in text with blank lines.
103103
* #410: Startup banner that shows Python and bpython version
104-
* #426: Experimental mutliline autocompletion.
104+
* #426: Experimental multiline autocompletion.
105105
* fish style last history completion with Arrow Right. Thanks to Nicholas
106106
Sweeting.
107107
* fish style automatic reverse history search with Arrow Up.
@@ -377,7 +377,7 @@ As always, please submit any bugs you might find to our bugtracker.
377377

378378
* #87: Add a closed attribute to Repl to fix mercurial.ui.ui expecting stderr
379379
to have this attribute.
380-
* #108: Unicode characters in docsrting crash bpython
380+
* #108: Unicode characters in docstring crash bpython
381381
* #118: Load_theme is not defined.
382382
* #99: Configurable font now documented.
383383
* #123: <F8> Pastebin can't handle 'ESC' key
@@ -522,7 +522,7 @@ Probably some other things, but I hate changelogs. :)
522522
0.8.0
523523
------
524524

525-
It's been a long while since the last release and there've been numerous little
525+
It's been a long while since the last release and there have been numerous little
526526
bugfixes and extras here and there so I'm putting this out as 0.8.0. Check the
527527
hg commit history if you want more info:
528528
http://bitbucket.org/bobf/bpython/

bpython/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
try:
2626
from bpython._version import __version__ as version
2727
except ImportError:
28-
version = 'unkown'
28+
version = 'unknown'
2929

3030
__version__ = version
3131
package_dir = os.path.abspath(os.path.dirname(__file__))

bpython/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# The MIT License
44
#
5-
# Copyirhgt (c) 2015 Sebastian Ramacher
5+
# Copyright (c) 2015 Sebastian Ramacher
66
#
77
# Permission is hereby granted, free of charge, to any person obtaining a copy
88
# of this software and associated documentation files (the "Software"), to deal

bpython/cli.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
# Modified by Brandon Navra
2626
# Notes for Windows
27-
# Prerequsites
27+
# Prerequisites
2828
# - Curses
2929
# - pyreadline
3030
#
@@ -434,7 +434,7 @@ def check(self):
434434

435435
def clear_current_line(self):
436436
"""Called when a SyntaxError occurred in the interpreter. It is
437-
used to prevent autoindentation from occuring after a
437+
used to prevent autoindentation from occurring after a
438438
traceback."""
439439
repl.Repl.clear_current_line(self)
440440
self.s = ''
@@ -449,7 +449,7 @@ def clear_wrapped_lines(self):
449449
self.scr.clrtoeol()
450450

451451
def complete(self, tab=False):
452-
"""Get Autcomplete list and window.
452+
"""Get Autocomplete list and window.
453453
454454
Called whenever these should be updated, and called
455455
with tab
@@ -1375,7 +1375,7 @@ def lsize():
13751375
get_colpair(self.config, 'comment'))
13761376
# XXX: After all the trouble I had with sizing the list box (I'm not very good
13771377
# at that type of thing) I decided to do this bit of tidying up here just to
1378-
# make sure there's no unnececessary blank lines, it makes things look nicer.
1378+
# make sure there's no unnecessary blank lines, it makes things look nicer.
13791379

13801380
y = self.list_win.getyx()[0]
13811381
self.list_win.resize(y + 2, w)
@@ -1396,7 +1396,7 @@ def lsize():
13961396

13971397
def size(self):
13981398
"""Set instance attributes for x and y top left corner coordinates
1399-
and width and heigth for the window."""
1399+
and width and height for the window."""
14001400
global stdscr
14011401
h, w = stdscr.getmaxyx()
14021402
self.y = 0
@@ -1566,7 +1566,7 @@ def __init__(self, scr, pwin, background, config, s=None, c=None):
15661566

15671567
def size(self):
15681568
"""Set instance attributes for x and y top left corner coordinates
1569-
and width and heigth for the window."""
1569+
and width and height for the window."""
15701570
h, w = gethw()
15711571
self.y = h - 1
15721572
self.w = w

bpython/clipboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def command_exists(command):
6060

6161

6262
def get_clipboard():
63-
"""Get best clipboard handling implemention for current system."""
63+
"""Get best clipboard handling implementation for current system."""
6464

6565
if platform.system() == 'Darwin':
6666
if command_exists('pbcopy'):

bpython/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def can_encode(c):
3333

3434

3535
def supports_box_chars():
36-
"""Check if the encoding suppors Unicode box characters."""
36+
"""Check if the encoding supports Unicode box characters."""
3737
return all(map(can_encode, u'│─└┘┌┐'))
3838

3939

bpython/curtsiesfrontend/manual_readline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def add(self, key, func, overwrite=False):
5656

5757
def add_config_attr(self, config_attr, func):
5858
if config_attr in self.awaiting_config:
59-
raise ValueError('config attrribute %r already has a mapping' %
59+
raise ValueError('config attribute %r already has a mapping' %
6060
(config_attr,))
6161
self.awaiting_config[config_attr] = func
6262

bpython/curtsiesfrontend/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ def send_to_stdout(self, output):
11361136
def send_to_stderr(self, error):
11371137
"""Send unicode strings or FmtStr to Repl stderr
11381138
1139-
Must be able to handle FmtStrs because interepter pass in
1139+
Must be able to handle FmtStrs because interpreter pass in
11401140
tracebacks already formatted."""
11411141
lines = error.split('\n')
11421142
if lines[-1]:

bpython/formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
"""These format strings are pretty ugly.
3333
\x01 represents a colour marker, which
34-
can be proceded by one or two of
34+
can be preceded by one or two of
3535
the following letters:
3636
k, r, g, y, b, m, c, w, d
3737
Which represent:

bpython/history.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# The MIT License
44
#
55
# Copyright (c) 2009 the bpython authors.
6-
# Copyirhgt (c) 2012,2015 Sebastian Ramacher
6+
# Copyright (c) 2012,2015 Sebastian Ramacher
77
#
88
# Permission is hereby granted, free of charge, to any person obtaining a copy
99
# of this software and associated documentation files (the "Software"), to deal

bpython/repl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(self, locals=None, encoding=None):
8383
on a caught syntax error. The purpose for this in bpython is so that
8484
the repl can be instantiated after the interpreter (which it
8585
necessarily must be with the current factoring) and then an exception
86-
callback can be added to the Interpeter instance afterwards - more
86+
callback can be added to the Interpreter instance afterwards - more
8787
specifically, this is so that autoindentation does not occur after a
8888
traceback."""
8989

@@ -1023,10 +1023,10 @@ def tokenize(self, s, newline=False):
10231023

10241024
def clear_current_line(self):
10251025
"""This is used as the exception callback for the Interpreter instance.
1026-
It prevents autoindentation from occuring after a traceback."""
1026+
It prevents autoindentation from occurring after a traceback."""
10271027

10281028
def send_to_external_editor(self, text, filename=None):
1029-
"""Returns modified text from an editor, or the oriignal text if editor
1029+
"""Returns modified text from an editor, or the original text if editor
10301030
exited with non-zero"""
10311031

10321032
encoding = getpreferredencoding()

bpython/simpleeval.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def parse_trees(cursor_offset, line):
224224

225225

226226
def evaluate_current_attribute(cursor_offset, line, namespace=None):
227-
"""Safely evaluates the expression having an attributed accesssed"""
227+
"""Safely evaluates the expression having an attributed accessed"""
228228
# this function runs user code in case of custom descriptors,
229229
# so could fail in any way
230230

@@ -240,7 +240,7 @@ def evaluate_current_attribute(cursor_offset, line, namespace=None):
240240

241241

242242
def safe_get_attribute(obj, attr):
243-
"""Gets attributes without triggering descriptors on new-style clases"""
243+
"""Gets attributes without triggering descriptors on new-style classes"""
244244
if is_new_style(obj):
245245
with AttrCleaner(obj):
246246
result = safe_get_attribute_new_style(obj, attr)

bpython/test/test_crashers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def run_bpython(self, input):
4949
enter the given input. Uses a test config that disables the
5050
paste detection.
5151
52-
Retuns bpython's output.
52+
Returns bpython's output.
5353
"""
5454
result = Deferred()
5555

bpython/test/test_curtsies_painting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ def test_cursor_stays_at_bottom_of_screen(self):
539539
self.assert_paint_ignoring_formatting(screen, (2, 4))
540540

541541
def test_unhighlight_paren_bugs(self):
542-
"""two previous bugs, paren did't highlight until next render
542+
"""two previous bugs, parent didn't highlight until next render
543543
and paren didn't unhighlight until enter"""
544544
self.assertEqual(self.repl.rl_history.entries, [''])
545545
self.enter('(')

bpython/test/test_simpleeval.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -162,19 +162,19 @@ def s4(self):
162162
raise AssertionError('Property __get__ executed')
163163

164164

165-
class OverridenGetattr(object):
165+
class OverriddenGetattr(object):
166166
def __getattr__(self, attr):
167167
raise AssertionError('custom __getattr__ executed')
168168
a = 1
169169

170170

171-
class OverridenGetattribute(object):
171+
class OverriddenGetattribute(object):
172172
def __getattribute__(self, attr):
173-
raise AssertionError('custom __getattrribute__ executed')
173+
raise AssertionError('custom __getattribute__ executed')
174174
a = 1
175175

176176

177-
class OverridenMRO(object):
177+
class OverriddenMRO(object):
178178
def __mro__(self):
179179
raise AssertionError('custom mro executed')
180180
a = 1
@@ -236,17 +236,17 @@ def test_lookup_with_property_and_slots(self):
236236
Slots.__dict__['s3'])
237237
self.assertIsInstance(sga(SlotsSubclass, 's3'), property)
238238

239-
def test_lookup_on_overriden_methods(self):
239+
def test_lookup_on_overridden_methods(self):
240240
sga = safe_get_attribute
241-
self.assertEqual(sga(OverridenGetattr(), 'a'), 1)
242-
self.assertEqual(sga(OverridenGetattribute(), 'a'), 1)
243-
self.assertEqual(sga(OverridenMRO(), 'a'), 1)
241+
self.assertEqual(sga(OverriddenGetattr(), 'a'), 1)
242+
self.assertEqual(sga(OverriddenGetattribute(), 'a'), 1)
243+
self.assertEqual(sga(OverriddenMRO(), 'a'), 1)
244244
with self.assertRaises(AttributeError):
245-
sga(OverridenGetattr(), 'b')
245+
sga(OverriddenGetattr(), 'b')
246246
with self.assertRaises(AttributeError):
247-
sga(OverridenGetattribute(), 'b')
247+
sga(OverriddenGetattribute(), 'b')
248248
with self.assertRaises(AttributeError):
249-
sga(OverridenMRO(), 'b')
249+
sga(OverriddenMRO(), 'b')
250250

251251
if __name__ == '__main__':
252252
unittest.main()

data/bpython.appdata.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
bpython is a fancy interface to the Python interpreter. It has the
1313
following features:
1414
<ul>
15-
<li>In-line syntac highlighting.</li>
16-
<li>Readline-like autocomplete with suggesstion displayed as you type.</li>
15+
<li>In-line syntax highlighting.</li>
16+
<li>Readline-like autocomplete with suggestion displayed as you type.</li>
1717
<li>Expected parameter list for any Python function.</li>
1818
<li>"Rewind" function to pop the last line of code from memory and re-evaluate.</li>
1919
<li>Send the code you've entered off to a pastebin.</li>

doc/sphinx/source/themes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Themes
44
======
5-
This chapter is about bpython's theming capabalities.
5+
This chapter is about bpython's theming capabilities.
66

77
bpython uses .theme files placed in your ``$XDG_CONFIG_HOME/bpython`` directory
88
[#f1]_. You can set the theme in the :ref:`configuration_color_scheme` option
@@ -20,7 +20,7 @@ Available Colors
2020
* w = white
2121
* d = default, this will make the switch default to the bpython default theme
2222

23-
Any letter writting uppercase will make the switch bold.
23+
Any letter writing uppercase will make the switch bold.
2424

2525
Available Switches
2626
------------------

0 commit comments

Comments
 (0)