remove unnecessary pass statements

This commit is contained in:
Tom Samstag 2015-12-31 00:24:07 -08:00
parent e9eedee5c6
commit 92c2ddc33e
5 changed files with 1 additions and 11 deletions

View File

@ -108,7 +108,6 @@ class FilterList(object):
the_file.close()
except (IOError, OSError):
print("IO/OSError in _filterlist.py")
pass
except SAXParseException:
print("Parser error")

View File

@ -425,7 +425,6 @@ class ODSTab(TabbedDoc):
errmsg = "%s\n%s" % (_("Could not create %s") % self.styles_xml, msg)
raise ReportError(errmsg)
except:
pass
raise ReportError(_("Could not create %s") % self.styles_xml)
self.f = open(self.styles_xml,"w")
@ -460,7 +459,6 @@ class ODSTab(TabbedDoc):
errmsg = "%s\n%s" % (_("Could not create %s") % self.manifest_xml, msg)
raise ReportError(errmsg)
except:
pass
raise ReportError(_("Could not create %s") % self.manifest_xml)
self.f = open(self.manifest_xml,"w")
@ -476,7 +474,6 @@ class ODSTab(TabbedDoc):
errmsg = "%s\n%s" % (_("Could not create %s") % self.meta_xml, msg)
raise ReportError(errmsg)
except:
pass
raise ReportError(_("Could not create %s") % self.meta_xml)
self.f = open(self.meta_xml,"w")
@ -499,7 +496,6 @@ class ODSTab(TabbedDoc):
errmsg = "%s\n%s" % (_("Could not create %s") % self.mimetype, msg)
raise ReportError(errmsg)
except:
pass
raise ReportError(_("Could not create %s") % self.mimetype)
self.f = open(self.mimetype,"w")

View File

@ -296,8 +296,8 @@ class RecentDocsMenu(object):
mitem.show()
new_menu.append(mitem)
except RuntimeError:
# ignore no longer existing files
_LOG.info("Ignoring the RecentItem %s (%s)" % (title, filename))
pass # ignore no longer existing files
count += 1
buf.write(_RCT_BTM)

View File

@ -404,7 +404,6 @@ class GeoGraphyView(OsmGps, NavigationView):
path = "%s%c%s" % ( config.get('geography.path'), os.sep, the_map )
shutil.rmtree(path)
pass
def add_specific_menu(self, menu, event, lat, lon):
"""
@ -1110,7 +1109,6 @@ class GeoGraphyView(OsmGps, NavigationView):
else:
config.set("geography.lock", True)
self.lock = config.get("geography.lock")
pass
def config_crosshair(self, client, cnxn_id, entry, data):
"""
@ -1121,7 +1119,6 @@ class GeoGraphyView(OsmGps, NavigationView):
else:
config.set("geography.show_cross", True)
self.set_crosshair(config.get("geography.show_cross"))
pass
def specific_options(self, configdialog):
"""

View File

@ -3371,7 +3371,6 @@ class PlacePages(BasePage):
for place_handle in self.report.obj_dict[Place]:
step()
self.PlacePage(self.report, title, place_handle)
pass
def PlaceListPage(self, report, title, place_handles):
self.dbase_ = report.database
@ -6613,7 +6612,6 @@ class RepositoryPages(BasePage):
def __init__(self, report):
self.repos_dict = defaultdict(set)
self.report = report
pass
def display_pages(self, title):
"""