File: spelling-length.patch

package info (click to toggle)
python-sfml 1.5.1.is.1.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,456 kB
  • ctags: 1,585
  • sloc: python: 5,747; cpp: 285; makefile: 147
file content (27 lines) | stat: -rw-r--r-- 951 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Fix a spelling error for lintian
Author: James Cowgill <james410@cowgill.org.uk>
Bug: https://github.com/Sonkun/python-sfml/pull/90
Applied-Upstream: https://github.com/Sonkun/python-sfml/commit/9184895efbc8a47ce51453ca8e3485dfa9ef659c
Last-Update: 2013-10-28
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/sfml/audio.pyx
+++ b/src/sfml/audio.pyx
@@ -46,7 +46,7 @@
 
 cdef class Listener:
 	def __init__(self):
-		NotImplementedError("This class is not meant to be instanciated!")
+		NotImplementedError("This class is not meant to be instantiated!")
 
 	@classmethod
 	def get_global_volume(cls):
@@ -107,7 +110,7 @@
 			cdef char* data = <bytes>bdata
 
 			if len(bdata) % 2:
-				raise ValueError("Chunk data lenght must be even as it represents a 16bit array")
+				raise ValueError("Chunk data length must be even as it represents a 16bit array")
 
 			if self.delete_this:
 				free(self.m_samples)