mirror of
https://gitlab.com/ita1024/waf.git
synced 2025-01-08 09:25:08 +01:00
moved the TINY_STEP variable to the module level
This commit is contained in:
parent
d74a2900a3
commit
80bc0a65ce
@ -13,6 +13,8 @@ console commands.
|
||||
|
||||
import sys, os, re, threading
|
||||
|
||||
TINY_STEP = 3000
|
||||
|
||||
try:
|
||||
if not (sys.stderr.isatty() and sys.stdout.isatty()):
|
||||
raise ValueError('not a tty')
|
||||
@ -241,7 +243,6 @@ else:
|
||||
if isinstance(txt, _type):
|
||||
writeconsole = windll.kernel32.WriteConsoleW
|
||||
|
||||
TINY_STEP = 3000
|
||||
for x in range(0, len(txt), TINY_STEP):
|
||||
# According MSDN, size should NOT exceed 64 kb (issue #746)
|
||||
tiny = txt[x : x + TINY_STEP]
|
||||
|
Loading…
Reference in New Issue
Block a user