[Pkg-bitcoin-commits] [python-quamash] 36/269: Change spaces to tabs

Jonas Smedegaard dr at jones.dk
Fri Nov 24 11:26:14 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 2308e8aea99d9309322b6790d6d0245d1783621a
Author: Arve Knudsen <arve.knudsen at gmail.com>
Date:   Tue Jul 1 21:09:34 2014 +0200

    Change spaces to tabs
---
 README | 50 +++++++++++++++++++++++++-------------------------
 1 file changed, 25 insertions(+), 25 deletions(-)

diff --git a/README b/README
index bd2fef8..79e6e91 100644
--- a/README
+++ b/README
@@ -14,41 +14,41 @@ Usage
 
 .. code:: python
 
-    import quamash
-    import time
-    import asyncio
-    import sys
+	import quamash
+	import time
+	import asyncio
+	import sys
 
-    try:
-        from PyQt5.QtWidgets import QApplication, QMainWindow
-    except ImportError:
-        from PySide.QtGui import QApplication, QMainWindow
+	try:
+		from PyQt5.QtWidgets import QApplication, QMainWindow
+	except ImportError:
+		from PySide.QtGui import QApplication, QMainWindow
 
 
-    def identity(x):
-        time.sleep(10)
-        return x
+	def identity(x):
+		time.sleep(10)
+		return x
 
 
-    @asyncio.coroutine
-    def my_task():
-        for x in range(5):
-            # Execute function in thread since it blocks
-            y = yield from loop.run_in_executor(None, identity, x)
-            assert x == y
+	@asyncio.coroutine
+	def my_task():
+		for x in range(5):
+			# Execute function in thread since it blocks
+			y = yield from loop.run_in_executor(None, identity, x)
+			assert x == y
 
-        loop.stop()
+		loop.stop()
 
 
-    if __name__ == '__main__':
-        app = QApplication(sys.argv)
+	if __name__ == '__main__':
+		app = QApplication(sys.argv)
 
-        win = QMainWindow()
-        win.show()
+		win = QMainWindow()
+		win.show()
 
-        loop = quamash.QEventLoop(app)
-        with loop:
-            loop.run_until_complete(my_task())
+		loop = quamash.QEventLoop(app)
+		with loop:
+			loop.run_until_complete(my_task())
 
 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