]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/migrations/__init__.py
Use https for various URLs
[osqa.git] / forum / migrations / __init__.py
index 01fd2df0f351f7385e6d5dc5d599dc3c224ab78e..99b09c177aa3061a349be187daa5a4c0aa59e6fd 100644 (file)
@@ -1,16 +1,16 @@
-import sys\r
-\r
-class ProgressBar(object):\r
-    def __init__(self, full):\r
-        self.full = full\r
-        self.count = 0\r
-\r
-        self.print_bar(0)\r
-\r
-    def print_bar(self, progress):\r
-        sys.stdout.write("[%s%s] %d%%\r" % ('=' * progress, ' ' * (100 - progress), progress))\r
-        sys.stdout.flush()\r
-\r
-    def update(self):\r
-        self.count += 1\r
+import sys
+
+class ProgressBar(object):
+    def __init__(self, full):
+        self.full = full
+        self.count = 0
+
+        self.print_bar(0)
+
+    def print_bar(self, progress):
+        sys.stdout.write("[%s%s] %d%%\r" % ('=' * progress, ' ' * (100 - progress), progress))
+        sys.stdout.flush()
+
+    def update(self):
+        self.count += 1
         self.print_bar(int((float(self.count) / float(self.full)) * 100))
\ No newline at end of file