diff options
author | Lucas Hoffmann <l-m-h@web.de> | 2018-08-11 22:48:38 +0200 |
---|---|---|
committer | Lucas Hoffmann <lucc@posteo.de> | 2018-10-04 23:55:10 +0200 |
commit | c2d7fb59ec06d3779b090c997c50baf5316001ea (patch) | |
tree | 487955183cfac6cf90953ba7f48306acba0e649c /python3 | |
parent | 20f81f025a283d5a8f7e7f2a7ecae80b32ac3e00 (diff) | |
download | vdebug-c2d7fb59ec06d3779b090c997c50baf5316001ea.zip |
Add consistent empty lines before classes
Diffstat (limited to 'python3')
-rw-r--r-- | python3/vdebug/breakpoint.py | 6 | ||||
-rw-r--r-- | python3/vdebug/connection.py | 1 | ||||
-rw-r--r-- | python3/vdebug/dbgp.py | 7 | ||||
-rw-r--r-- | python3/vdebug/error.py | 8 | ||||
-rw-r--r-- | python3/vdebug/ui/vimui.py | 1 |
5 files changed, 21 insertions, 2 deletions
diff --git a/python3/vdebug/breakpoint.py b/python3/vdebug/breakpoint.py index c600a92..3b41fa9 100644 --- a/python3/vdebug/breakpoint.py +++ b/python3/vdebug/breakpoint.py @@ -169,6 +169,7 @@ class Breakpoint: def __str__(self): return "%s breakpoint, id %i" % (self.type, self.id) + class LineBreakpoint(Breakpoint): type = "line" @@ -190,6 +191,7 @@ class LineBreakpoint(Breakpoint): return '-t {} -f "{}" -n {} -s enabled'.format( self.type, self.file.as_remote(), self.line) + class TemporaryLineBreakpoint(LineBreakpoint): def on_add(self): pass @@ -201,6 +203,7 @@ class TemporaryLineBreakpoint(LineBreakpoint): cmd = LineBreakpoint.get_cmd(self) return cmd + " -r 1" + class ConditionalBreakpoint(LineBreakpoint): type = "conditional" @@ -214,6 +217,7 @@ class ConditionalBreakpoint(LineBreakpoint): self.condition.encode("UTF-8")).decode("UTF-8") return cmd + class WatchBreakpoint(Breakpoint): type = "watch" @@ -237,6 +241,7 @@ class ExceptionBreakpoint(Breakpoint): def get_cmd(self): return "-t {} -x {} -s enabled".format(self.type, self.exception) + class CallBreakpoint(Breakpoint): type = "call" @@ -247,5 +252,6 @@ class CallBreakpoint(Breakpoint): def get_cmd(self): return "-t {} -m {} -s enabled".format(self.type, self.function) + class ReturnBreakpoint(CallBreakpoint): type = "return" diff --git a/python3/vdebug/connection.py b/python3/vdebug/connection.py index 11b3f67..2c1f343 100644 --- a/python3/vdebug/connection.py +++ b/python3/vdebug/connection.py @@ -90,7 +90,6 @@ class ConnectionHandler: sent = self.sock.send(b'\x00') - class SocketCreator: def __init__(self, input_stream=None): diff --git a/python3/vdebug/dbgp.py b/python3/vdebug/dbgp.py index c03ca7a..4c40b70 100644 --- a/python3/vdebug/dbgp.py +++ b/python3/vdebug/dbgp.py @@ -551,27 +551,32 @@ class EvalProperty(ContextProperty): "." + name -""" Errors/Exceptions """ +# Errors/Exceptions class TimeoutError(Exception): pass + class DBGPError(Exception): """Raised when the debugger returns an error message.""" pass + class CmdNotImplementedError(Exception): """Raised when the debugger returns an error message.""" pass + class EvalError(Exception): """Raised when some evaluated code is invalid.""" pass + class ResponseError(Exception): """An error caused by an unexpected response from the debugger (e.g. invalid format XML).""" pass + class TraceError(Exception): """Raised when trace is out of domain.""" pass diff --git a/python3/vdebug/error.py b/python3/vdebug/error.py index 19342ec..4a5949d 100644 --- a/python3/vdebug/error.py +++ b/python3/vdebug/error.py @@ -1,22 +1,30 @@ """Exception classes for Vdebug.""" + class BreakpointError(Exception): pass + class UserInterrupt(Exception): """Raised when a user interrupts connection wait.""" + pass + class FilePathError(Exception): pass + class EventError(Exception): pass + class LogError(Exception): pass + class ModifiedBufferError(Exception): pass + class NoConnectionError(Exception): pass diff --git a/python3/vdebug/ui/vimui.py b/python3/vdebug/ui/vimui.py index bcd4024..855f173 100644 --- a/python3/vdebug/ui/vimui.py +++ b/python3/vdebug/ui/vimui.py @@ -253,6 +253,7 @@ class Ui(interface.Ui): def __get_buf_list(): return vim.eval("range(1, bufnr('$'))") + class SourceWindow(interface.Window): file = None |