Xqt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/98106


Change subject: [PEP8] changes
......................................................................

[PEP8] changes

Change-Id: Ibde0f1e8300541b2771d2035f3949df56565ec37
---
M wikipediatools.py
1 file changed, 13 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/compat 
refs/changes/06/98106/1

diff --git a/wikipediatools.py b/wikipediatools.py
index baefa51..addb2e9 100644
--- a/wikipediatools.py
+++ b/wikipediatools.py
@@ -1,9 +1,20 @@
+# -*- coding: utf-8  -*-
+#
+# (C) Pywikipedia bot team, 2006-2013
+#
+# Distributed under the terms of the MIT license.
+#
 __version__ = '$Id$'
-import os, sys
+#
+
+import os
+import sys
+
 
 def create_user_config_file(base_dir):
     import generate_user_files
     generate_user_files.create_user_config(base_dir)
+
 
 def get_base_dir():
     """Return the directory in which user-specific information is stored.
@@ -25,7 +36,6 @@
     for arg in sys.argv[1:]:
         if arg.startswith("-dir:"):
             base_dir = arg[5:]
-            # sys.argv.remove(arg) // keep, so as to yield identical results, 
since this routine is called multiple times.
             break
     else:
         if "PYWIKIBOT_DIR" in os.environ:
@@ -36,7 +46,7 @@
             else:
                 try:
                     base_dir = os.path.split(
-                                sys.modules['wikipediatools'].__file__)[0]
+                        sys.modules['wikipediatools'].__file__)[0]
                 except KeyError:
                     print sys.modules
                     base_dir = '.'

-- 
To view, visit https://gerrit.wikimedia.org/r/98106
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibde0f1e8300541b2771d2035f3949df56565ec37
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Xqt <i...@gno.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to