Jose Diaz-Gonzalez
commited on
Commit
·
1c09b71
1
Parent(s):
059f801
Remove redundant backslashes
Browse filesThey are not necessary between parenthesis
- pytube/models.py +4 -4
- setup.py +1 -1
pytube/models.py
CHANGED
@@ -83,19 +83,19 @@ class Video(object):
|
|
83 |
|
84 |
# Catch possible exceptions occurring during download
|
85 |
except IOError:
|
86 |
-
print("\n\nError: Failed to open file.\n"
|
87 |
-
"Check that: ('{0}'), is a valid pathname.\n\n"
|
88 |
"Or that ('{1}.{2}') is a valid filename.\n\n".format(
|
89 |
path, self.filename, self.extension))
|
90 |
exit(2)
|
91 |
|
92 |
except BufferError:
|
93 |
-
print("\n\nError: Failed on writing buffer.\n"
|
94 |
"Failed to write video to file.\n\n")
|
95 |
exit(1)
|
96 |
|
97 |
except KeyboardInterrupt:
|
98 |
-
print("\n\nInterrupt signal given.\nDeleting incomplete video"
|
99 |
"('{0}.{1}').\n\n".format(self.filename, self.extension))
|
100 |
remove(fullpath)
|
101 |
exit(1)
|
|
|
83 |
|
84 |
# Catch possible exceptions occurring during download
|
85 |
except IOError:
|
86 |
+
print("\n\nError: Failed to open file.\n"
|
87 |
+
"Check that: ('{0}'), is a valid pathname.\n\n"
|
88 |
"Or that ('{1}.{2}') is a valid filename.\n\n".format(
|
89 |
path, self.filename, self.extension))
|
90 |
exit(2)
|
91 |
|
92 |
except BufferError:
|
93 |
+
print("\n\nError: Failed on writing buffer.\n"
|
94 |
"Failed to write video to file.\n\n")
|
95 |
exit(1)
|
96 |
|
97 |
except KeyboardInterrupt:
|
98 |
+
print("\n\nInterrupt signal given.\nDeleting incomplete video"
|
99 |
"('{0}.{1}').\n\n".format(self.filename, self.extension))
|
100 |
remove(fullpath)
|
101 |
exit(1)
|
setup.py
CHANGED
@@ -10,7 +10,7 @@ packages = [
|
|
10 |
setup(
|
11 |
name="pytube",
|
12 |
version=pytube.__version__,
|
13 |
-
description="A simple, yet versatile package for downloading "
|
14 |
"YouTube videos.",
|
15 |
author="Nick Ficano",
|
16 |
author_email="nficano@gmail.com",
|
|
|
10 |
setup(
|
11 |
name="pytube",
|
12 |
version=pytube.__version__,
|
13 |
+
description="A simple, yet versatile package for downloading "
|
14 |
"YouTube videos.",
|
15 |
author="Nick Ficano",
|
16 |
author_email="nficano@gmail.com",
|