summaryrefslogtreecommitdiffstats
path: root/glances/__main__.py
diff options
context:
space:
mode:
authorAlessio Sergi <al3hex@gmail.com>2014-04-23 12:23:23 +0200
committerAlessio Sergi <al3hex@gmail.com>2014-04-23 12:23:23 +0200
commit6e7c3a275ecba72056f429d5c27052bfdfc6c675 (patch)
tree233d80764ee99f0c6222c6feab37644beee04142 /glances/__main__.py
parent3012662a920cf607495393cd985aaa8ffc0d308f (diff)
Use parentheses sparingly in conditional statements
Mandatory only for multi-line continuation
Diffstat (limited to 'glances/__main__.py')
-rw-r--r--glances/__main__.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/glances/__main__.py b/glances/__main__.py
index f571dbb9..9aeb86f2 100644
--- a/glances/__main__.py
+++ b/glances/__main__.py
@@ -18,16 +18,15 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Execute with
-# $ python glances/__main__.py (2.6+)
+"""Allow user to run Glances as a module from a dir or zip file."""
+
+# Execute with:
+# $ python glances/__main__.py (2.6)
# $ python -m glances (2.7+)
-"""
-Allow user to run Glances as a module from a dir or zip file
-"""
import sys
-if ((__package__ is None) and (not hasattr(sys, "frozen"))):
+if __package__ is None and not hasattr(sys, "frozen"):
# It is a direct call to __main__.py
import os.path
path = os.path.realpath(os.path.abspath(__file__))