[Pkg-bitcoin-commits] [python-quamash] 82/269: tabs to space

Jonas Smedegaard dr at jones.dk
Fri Nov 24 11:26:18 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository python-quamash.

commit a0b55071ac6edd37d89990437f430ccb5bee32e8
Author: Mark Harviston <mark.harviston at gmail.com>
Date:   Thu Jul 10 23:51:34 2014 -0700

    tabs to space
---
 README | 54 +++++++++++++++++++++++++++---------------------------
 1 file changed, 27 insertions(+), 27 deletions(-)

diff --git a/README b/README
index 30a1cf3..39eec1e 100644
--- a/README
+++ b/README
@@ -16,40 +16,40 @@ Usage
 =====
 
 .. code:: python
-	import sys
-	import asyncio
-	import time
+    import sys
+    import asyncio
+    import time
 
-	from PyQt5.QtWidgets import QApplication, QProgressBar
-	from quamash import QEventLoop, QThreadExecutor
+    from PyQt5.QtWidgets import QApplication, QProgressBar
+    from quamash import QEventLoop, QThreadExecutor
 
-	app = QApplication(sys.argv)
-	progress = QProgressBar()
-	loop = QEventLoop(app)
+    app = QApplication(sys.argv)
+    progress = QProgressBar()
+    loop = QEventLoop(app)
 
-	progress.setRange(0, 99)
-	progress.show()
+    progress.setRange(0, 99)
+    progress.show()
 
-	@asyncio.coroutine
-	def master():
-		yield from first_50()
-		with QThreadExecutor(1) as exec:
-			yield from loop.run_in_executor(exec, last_50)
-		# TODO announce complettion?
+    @asyncio.coroutine
+    def master():
+        yield from first_50()
+        with QThreadExecutor(1) as exec:
+            yield from loop.run_in_executor(exec, last_50)
+        # TODO announce complettion?
 
-	@asyncio.coroutine
-	def first_50():
-		for i in range(50):
-			progress.setValue(i)
-			yield from asyncio.sleep(.1)
+    @asyncio.coroutine
+    def first_50():
+        for i in range(50):
+            progress.setValue(i)
+            yield from asyncio.sleep(.1)
 
-	def last_50():
-		for i in range(50,100):
-			loop.call_soon_threadsafe(progress.setValue, i)
-			time.sleep(.1)
+    def last_50():
+        for i in range(50,100):
+            loop.call_soon_threadsafe(progress.setValue, i)
+            time.sleep(.1)
 
-	with loop:
-		loop.run_until_complete(master())
+    with loop:
+        loop.run_until_complete(master())
 
 Testing
 =======

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/python-quamash.git



More information about the Pkg-bitcoin-commits mailing list