Skip to content

Commit

Permalink
Merge pull request #1474 from wxWidgets/fix-wget-typos
Browse files Browse the repository at this point in the history
Fix typos and trim whitespace
  • Loading branch information
RobinD42 committed Jan 1, 2020
2 parents b1f0a5d + e3ef0db commit c51cdd2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions wx/svg/_nanosvg.pxd
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#----------------------------------------------------------------------
# Name: _nanosvg.pdx
# Purpose: Cython decarlations for the items in the nanosvg code
# Purpose: Cython decarlations for the items in the nanosvg code
# we're wrapping. See https://github.com/memononen/nanosvg and
# {Phoenix}/ext/nanosvg/src
#
#
# Author: Robin Dunn
#
# Created: 23-July-2019
Expand Down Expand Up @@ -60,7 +60,7 @@ cdef extern from 'nanosvg.h':
char type
unsigned int color
NSVGgradient* gradient


ctypedef struct NSVGpath:
float *pts
Expand Down Expand Up @@ -113,4 +113,3 @@ cdef extern from 'nanosvgrast.h':
NSVGrasterizer* r,
NSVGimage* image, float tx, float ty, float scale,
unsigned char* dst, int w, int h, int stride)

10 changes: 5 additions & 5 deletions wx/tools/wxget.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def get_save_path(url, dest_dir, force=False):
return (url, filename)

def download_wget(url, filename, trusted=False):
""" Try to donwload via wget."""
""" Try to download via wget."""
result = False
try:
cmd = ["wget", url, '-O', filename]
Expand All @@ -107,7 +107,7 @@ def download_wget(url, filename, trusted=False):
return result

def download_urllib(url, filename):
""" Try to donwload via urllib."""
""" Try to download via urllib."""
print("Trying to Download via urllib from:\n ", url)
keep_going = True
try:
Expand Down Expand Up @@ -149,12 +149,12 @@ def download_urllib(url, filename):
message+status)
wx.Sleep(0.08) # Give the GUI some update time
progress.Destroy()

result = os.path.exists(filename) and os.stat(filename).st_size > 0
return result
return result

def download_pip(url, filename, force=False, trusted=False):
""" Try to donwload via pip."""
""" Try to download via pip."""
download_dir = os.path.split(filename)[0]
if len(download_dir) == 0:
download_dir = '.'
Expand Down

0 comments on commit c51cdd2

Please sign in to comment.