Skip to content

Commit 65ad9e8

Browse files
committed
Reformat all files that woudl lead to less than 4 lines changed.
1 parent dbf3a92 commit 65ad9e8

6 files changed

Lines changed: 13 additions & 9 deletions

File tree

IPython/core/prompts.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
"""Being removed
33
"""
44

5+
56
class LazyEvaluate(object):
67
"""This is used for formatting strings with values that need to be updated
78
at that time, such as the current time or working directory."""
9+
810
def __init__(self, func, *args, **kwargs):
911
self.func = func
1012
self.args = args
@@ -16,6 +18,6 @@ def __call__(self, **kwargs):
1618

1719
def __str__(self):
1820
return str(self())
19-
21+
2022
def __format__(self, format_spec):
2123
return format(self(), format_spec)

IPython/core/tests/nonascii2.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-
'Ўт№Ф'
4+
"Ўт№Ф"

IPython/lib/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
Extra capabilities for IPython
44
"""
55

6-
#-----------------------------------------------------------------------------
6+
# -----------------------------------------------------------------------------
77
# Copyright (C) 2008-2011 The IPython Development Team
88
#
99
# Distributed under the terms of the BSD License. The full license is in
1010
# the file COPYING, distributed as part of this software.
11-
#-----------------------------------------------------------------------------
11+
# -----------------------------------------------------------------------------

IPython/testing/tests/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# encoding: utf-8
22
__docformat__ = "restructuredtext en"
3-
#-------------------------------------------------------------------------------
3+
# -------------------------------------------------------------------------------
44
# Copyright (C) 2005 Fernando Perez <fperez@colorado.edu>
55
# Brian E Granger <ellisonbg@gmail.com>
66
# Benjamin Ragan-Kelley <benjaminrk@gmail.com>
77
#
88
# Distributed under the terms of the BSD License. The full license is in
99
# the file COPYING, distributed as part of this software.
10-
#-------------------------------------------------------------------------------
10+
# -------------------------------------------------------------------------------

IPython/utils/_process_cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def system(cmd):
3535
# Start up process:
3636
reg = System.Diagnostics.Process.Start(psi)
3737

38+
3839
def getoutput(cmd):
3940
"""
4041
getoutput(cmd) should work in a cli environment on Mac OSX, Linux,
@@ -53,6 +54,7 @@ def getoutput(cmd):
5354
error = myError.ReadToEnd()
5455
return output
5556

57+
5658
def check_pid(pid):
5759
"""
5860
Check if a process with the given PID (pid) exists
@@ -66,4 +68,4 @@ def check_pid(pid):
6668
return True
6769
except System.ArgumentException:
6870
# process with given pid isn't running
69-
return False
71+
return False

IPython/utils/dir2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def dir2(obj):
4141
# TypeError: dir(obj) does not return a list
4242
words = set()
4343

44-
if safe_hasattr(obj, '__class__'):
44+
if safe_hasattr(obj, "__class__"):
4545
words |= set(dir(obj.__class__))
4646

4747
# filter out non-string attributes which may be stuffed by dir() calls
@@ -62,7 +62,7 @@ def get_real_method(obj, name):
6262
Returns the method or None.
6363
"""
6464
try:
65-
canary = getattr(obj, '_ipython_canary_method_should_not_exist_', None)
65+
canary = getattr(obj, "_ipython_canary_method_should_not_exist_", None)
6666
except Exception:
6767
return None
6868

0 commit comments

Comments
 (0)