Sfoglia il codice sorgente

msgprnt() to errprint()

version-14
Saurabh 12 anni fa
parent
commit
f73b80c7b4
1 ha cambiato i file con 3 aggiunte e 4 eliminazioni
  1. +3
    -4
      webnotes/utils/__init__.py

+ 3
- 4
webnotes/utils/__init__.py Vedi File

@@ -471,9 +471,9 @@ def in_words(integer, in_million=True):
bestguess, remainder = str(n), 0

if n<=20:
webnotes.msgprint(sys.stderr)
webnotes.msgprint(n)
webnotes.msgprint("How did this happen?")
webnotes.errprint(sys.stderr)
webnotes.errprint(n)
webnotes.errprint("How did this happen?")
assert 0
elif n < 100:
bestguess= xpsn((n//10)*10, known, xpsn) + '-' + xpsn(n%10, known, xpsn)
@@ -513,7 +513,6 @@ def in_words(integer, in_million=True):

return psn(n, known, psn)

# Get Defaults
# ==============================================================================



Caricamento…
Annulla
Salva