Skip to content

Commit 667f3cb

Browse files
committed
Run black on all files that would lead to 3 lines changes or less
1 parent e7d5820 commit 667f3cb

File tree

9 files changed

+13
-8
lines changed

9 files changed

+13
-8
lines changed

IPython/core/tests/nonascii.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# coding: iso-8859-5
22
# (Unlikely to be the default encoding for most testers.)
33
# ±¶ÿàáâãäåæçèéêëìíîï <- Cyrillic characters
4-
u = '®âðÄ'
4+
u = "®âðÄ"

IPython/lib/tests/test_imports.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
# encoding: utf-8
22
from IPython.testing import decorators as dec
33

4+
45
def test_import_backgroundjobs():
56
from IPython.lib import backgroundjobs
67

8+
79
def test_import_deepreload():
810
from IPython.lib import deepreload
911

12+
1013
def test_import_demo():
1114
from IPython.lib import demo

IPython/terminal/pt_inputhooks/asyncio.py

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

3232
from IPython.core.async_helpers import get_asyncio_loop
3333

34-
PTK3 = ptk_version.startswith('3.')
35-
34+
PTK3 = ptk_version.startswith("3.")
3635

3736

3837
def inputhook(context):

IPython/terminal/pt_inputhooks/gtk.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
# Enable threading in GTK. (Otherwise, GTK will keep the GIL.)
4242
gtk.gdk.threads_init()
4343

44+
4445
def inputhook(context):
4546
"""
4647
When the eventloop of prompt-toolkit is idle, call this inputhook.
@@ -50,6 +51,7 @@ def inputhook(context):
5051
5152
:param context: An `InputHookContext` instance.
5253
"""
54+
5355
def _main_quit(*a, **kw):
5456
gtk.main_quit()
5557
return False

IPython/terminal/pt_inputhooks/gtk3.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33

44
from gi.repository import Gtk, GLib
55

6+
67
def _main_quit(*args, **kwargs):
78
Gtk.main_quit()
89
return False
910

11+
1012
def inputhook(context):
1113
GLib.io_add_watch(context.fileno(), GLib.PRIORITY_DEFAULT, GLib.IO_IN, _main_quit)
1214
Gtk.main()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
x = 1
2-
print('x is:',x)
2+
print("x is:", x)

IPython/utils/_sysinfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# GENERATED BY setup.py
2-
commit = u""
2+
commit = ""

IPython/utils/tests/test_dir2.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ def test_base():
1919

2020

2121
def test_SubClass():
22-
2322
class SubClass(Base):
2423
y = 2
2524

@@ -53,7 +52,7 @@ def some_method(self):
5352

5453
class SillierWithDir(MisbehavingGetattr):
5554
def __dir__(self):
56-
return ['some_method']
55+
return ["some_method"]
5756

5857
for bad_klass in (MisbehavingGetattr, SillierWithDir):
5958
obj = bad_klass()

setupbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def _record_commit(self, base_dir):
346346
out_file.writelines(
347347
[
348348
"# GENERATED BY setup.py\n",
349-
'commit = u"%s"\n' % repo_commit,
349+
'commit = "%s"\n' % repo_commit,
350350
]
351351
)
352352

0 commit comments

Comments
 (0)