Skip to content

Commit 5e1c934

Browse files
authored
new black (pyzo#715)
Co-authored-by: Almar Klein <[email protected]>
1 parent f8566f6 commit 5e1c934

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+1730
-1920
lines changed

freeze/dllutils.py

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

2525

2626
def get_command_to_set_search_path():
27-
""" Get the command to change the RPATH of executables and dynamic
27+
"""Get the command to change the RPATH of executables and dynamic
2828
libraries. Returns None if there is no such command or if it
2929
cannot be found.
3030
"""
@@ -65,7 +65,7 @@ def get_command_to_set_search_path():
6565

6666

6767
def set_search_path(fname, *args):
68-
""" set_search_path(fname, *args)
68+
"""set_search_path(fname, *args)
6969
For the given library/executable, set the search path to the
7070
relative paths specified in args.
7171
@@ -156,7 +156,7 @@ def set_search_path(fname, *args):
156156

157157

158158
def mac_add_rpath(fname, rpath):
159-
""" mac_add_rpath(fname, rpath)
159+
"""mac_add_rpath(fname, rpath)
160160
Set the rpath for a Mac library or executble. If the rpath is already
161161
registered, it is ignored.
162162
"""
@@ -173,7 +173,7 @@ def mac_add_rpath(fname, rpath):
173173

174174

175175
def remove_CRT_dependencies(dirname, recurse=True):
176-
""" remove_CRT_dependencies(path, recurse=True)
176+
"""remove_CRT_dependencies(path, recurse=True)
177177
Check all .dll and .pyd files in the given directory (and its
178178
subdirectories if recurse is True), removing the dependency on the
179179
Windows C runtime from the embedded manifest.
@@ -188,7 +188,7 @@ def remove_CRT_dependencies(dirname, recurse=True):
188188

189189

190190
def remove_CRT_dependency(filename):
191-
""" remove_CRT_dependency(filename)
191+
"""remove_CRT_dependency(filename)
192192
Modify the embedded manifest of a Windows dll (or pyd file),
193193
such that it no longer depends on the Windows C runtime.
194194
In effect, the dll will fall back to using the C runtime that

freeze/freezeScript.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@
145145

146146

147147
def copydir_smart(path1, path2):
148-
""" like shutil.copytree, but ...
149-
* ignores __pycache__directories
150-
* ignores hg, svn and git directories
148+
"""like shutil.copytree, but ...
149+
* ignores __pycache__directories
150+
* ignores hg, svn and git directories
151151
"""
152152
# Ensure destination directory does exist
153153
if not os.path.isdir(path2):

pyzo/__init__.py

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

117117

118118
class MyApp(QtWidgets.QApplication):
119-
""" So we an open .py files on OSX.
119+
"""So we an open .py files on OSX.
120120
OSX is smart enough to call this on the existing process.
121121
"""
122122

@@ -159,7 +159,7 @@ def pyzo_excepthook(type, value, tb):
159159

160160

161161
def getResourceDirs():
162-
""" getResourceDirs()
162+
"""getResourceDirs()
163163
Get the directories to the resources: (pyzoDir, appDataDir, appConfigDir).
164164
Also makes sure that the appDataDir has a "tools" directory and
165165
a style file.
@@ -184,7 +184,7 @@ def getResourceDirs():
184184

185185

186186
def resetConfig(preserveState=True):
187-
""" resetConfig()
187+
"""resetConfig()
188188
Deletes the config file to revert to default and prevent Pyzo from storing
189189
its config on the next shutdown.
190190
"""
@@ -224,7 +224,7 @@ def loadThemesFromDir(dname, isBuiltin=False):
224224

225225

226226
def loadConfig(defaultsOnly=False):
227-
""" loadConfig(defaultsOnly=False)
227+
"""loadConfig(defaultsOnly=False)
228228
Load default and site-wide configuration file(s) and that of the user (if it exists).
229229
Any missing fields in the user config are set to the defaults.
230230
"""
@@ -273,7 +273,7 @@ def replaceFields(base, new):
273273

274274

275275
def saveConfig():
276-
""" saveConfig()
276+
"""saveConfig()
277277
Save all configureations to file.
278278
"""
279279

@@ -291,8 +291,7 @@ def saveConfig():
291291

292292

293293
def start():
294-
""" Run Pyzo.
295-
"""
294+
"""Run Pyzo."""
296295

297296
# Do some imports
298297
from pyzo.core import pyzoLogging # noqa - to start logging asap

0 commit comments

Comments
 (0)