aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-10-22 12:26:17 +0200
committerMattias Andrée <maandree@operamail.com>2012-10-22 12:26:17 +0200
commit10b55d4def70d8dcb3e0c667c1e38747580e73f1 (patch)
treeea3a02450337b2b09abdc81e2ce34215a3a2d8e8
parent45c3d2a1aa8f68525317933689541274926942f7 (diff)
downloadponysay-10b55d4def70d8dcb3e0c667c1e38747580e73f1.tar.gz
ponysay-10b55d4def70d8dcb3e0c667c1e38747580e73f1.tar.bz2
ponysay-10b55d4def70d8dcb3e0c667c1e38747580e73f1.zip
doc typo
-rwxr-xr-xponysay.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/ponysay.py b/ponysay.py
index 6e8b82c..3467457 100755
--- a/ponysay.py
+++ b/ponysay.py
@@ -175,7 +175,7 @@ class Ponysay():
if env_ucs in ('yes', 'y', '1'): ucs_conf = 1
elif env_ucs in ('harder', 'h', '2'): ucs_conf = 2
- ## Stop USC is not used
+ ## Stop UCS is not used
if ucs_conf == 0:
return
@@ -186,7 +186,7 @@ class Ponysay():
with open(ucsmap, 'rb') as mapfile:
maplines += [line.replace('\n', '') for line in mapfile.read().decode('utf8', 'replace').split('\n')]
- ## Create USC → ASCII mapping from read lines
+ ## Create UCS → ASCII mapping from read lines
map = {}
stripset = ' \t' # must be string, wtf! and way doesn't python's doc say so
for line in maplines:
@@ -196,7 +196,7 @@ class Ponysay():
ascii = line[s + 1:].strip(stripset)
map[ucs] = ascii
- ## Apply USC → ASCII mapping to -f and -q arguments
+ ## Apply UCS → ASCII mapping to -f and -q arguments
for flag in ('-f', '-q'):
if args.opts[flag] is not None:
for i in range(0, len(args.opts[flag])):
@@ -209,7 +209,7 @@ class Ponysay():
#######################
'''
- Apply USC:ise pony names according to UCS settings
+ Apply UCS:ise pony names according to UCS settings
@param ponies:list<str> List of all ponies (of interrest)
@param links:map<str> Map to fill with simulated symlink ponies, may be `None`
@@ -221,7 +221,7 @@ class Ponysay():
if env_ucs in ('yes', 'y', '1'): ucs_conf = 1
elif env_ucs in ('harder', 'h', '2'): ucs_conf = 2
- ## Stop USC is not used
+ ## Stop UCS is not used
if ucs_conf == 0:
return
@@ -232,7 +232,7 @@ class Ponysay():
with open(ucsmap, 'rb') as mapfile:
maplines += [line.replace('\n', '') for line in mapfile.read().decode('utf8', 'replace').split('\n')]
- ## Create USC → ASCII mapping from read lines
+ ## Create UCS → ASCII mapping from read lines
map = {}
stripset = ' \t' # must be string, wtf! and way doesn't python's doc say so
for line in maplines:
@@ -242,7 +242,7 @@ class Ponysay():
ascii = line[s + 1:].strip(stripset)
map[ascii] = ucs
- ## Apply USC → ACII mapping to ponies, by alias if weak settings
+ ## Apply UCS → ACII mapping to ponies, by alias if weak settings
if ucs_conf == 1:
for pony in ponies:
if pony in map:
@@ -527,7 +527,7 @@ class Ponysay():
## Get all quoters
ponies = self.__quoters()
- ## USC:ise and sort
+ ## UCS:ise and sort
self.__ucsise(ponies)
ponies.sort()
@@ -554,7 +554,7 @@ class Ponysay():
if endswith(pony, '.pony'):
ponies.append(pony[:-5])
- ## USC:ise and sort
+ ## UCS:ise and sort
self.__ucsise(ponies)
ponies.sort()