Skip to content

Commit

Permalink
Flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Oct 2, 2018
1 parent 7700155 commit 2bc7dc2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
4 changes: 3 additions & 1 deletion pudb/__init__.py
Expand Up @@ -76,7 +76,9 @@ def _tty_override():


def _open_tty(tty_path):
import io, os, sys
import io
import os
import sys
if sys.version_info[0] == 2:
tty_file = open(tty_path, 'r+b', buffering=0)
term_size = None
Expand Down
23 changes: 10 additions & 13 deletions pudb/debugger.py
Expand Up @@ -159,7 +159,8 @@
# {{{ debugger interface

class Debugger(bdb.Bdb):
def __init__(self, stdin=None, stdout=None, term_size=None, steal_output=False, **kwargs):
def __init__(self, stdin=None, stdout=None, term_size=None, steal_output=False,
**kwargs):
# Pass remaining kwargs to python debugger framework
bdb.Bdb.__init__(self, **kwargs)
self.ui = DebuggerUI(self, stdin=stdin, stdout=stdout, term_size=term_size)
Expand Down Expand Up @@ -615,10 +616,8 @@ def __init__(self, func_name, code):
def __eq__(self, other):
return (
type(self) == type(other)
and
self.function_name == other.function_name
and
self.code is other.code)
and self.function_name == other.function_name
and self.code is other.code)

def identifier(self):
return "<source code of function %s>" % self.function_name
Expand Down Expand Up @@ -862,10 +861,10 @@ def edit_inspector_detail(w, size, key):
"Show methods", iinfo.show_methods)

lb = urwid.ListBox(urwid.SimpleListWalker(
id_segment +
rb_grp_show + [urwid.Text("")] +
rb_grp_access + [urwid.Text("")] +
[
id_segment
+ rb_grp_show + [urwid.Text("")]
+ rb_grp_access + [urwid.Text("")]
+ [
wrap_checkbox,
expanded_checkbox,
highlighted_checkbox,
Expand Down Expand Up @@ -1888,11 +1887,9 @@ def help(w, size, key):
CONFIG["display"] == "curses"
or (
CONFIG["display"] == "auto"
and
not (
and not (
os.environ.get("TERM", "").startswith("xterm")
or
os.environ.get("TERM", "").startswith("rxvt")
or os.environ.get("TERM", "").startswith("rxvt")
)))

if (want_curses_display
Expand Down

0 comments on commit 2bc7dc2

Please sign in to comment.