mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
Removed oneliners
This commit is contained in:
parent
d877de2758
commit
aeb328b31f
@ -289,7 +289,8 @@ class EDLogs(FileSystemEventHandler):
|
|||||||
newlogfile = logfiles and join(self.currentdir, logfiles[-1]) or None
|
newlogfile = logfiles and join(self.currentdir, logfiles[-1]) or None
|
||||||
|
|
||||||
except:
|
except:
|
||||||
if __debug__: print_exc()
|
if __debug__:
|
||||||
|
print_exc()
|
||||||
|
|
||||||
newlogfile = None
|
newlogfile = None
|
||||||
|
|
||||||
@ -757,7 +758,9 @@ class EDLogs(FileSystemEventHandler):
|
|||||||
# "python" and "Python", etc.
|
# "python" and "Python", etc.
|
||||||
# This returns a simple lowercased name e.g. 'hnshockmount', 'int_cargorack_size6_class1', 'python', etc
|
# This returns a simple lowercased name e.g. 'hnshockmount', 'int_cargorack_size6_class1', 'python', etc
|
||||||
def canonicalise(self, item):
|
def canonicalise(self, item):
|
||||||
if not item: return ''
|
if not item:
|
||||||
|
return ''
|
||||||
|
|
||||||
item = item.lower()
|
item = item.lower()
|
||||||
match = self._RE_CANONICALISE.match(item)
|
match = self._RE_CANONICALISE.match(item)
|
||||||
return match and match.group(1) or item
|
return match and match.group(1) or item
|
||||||
|
Loading…
x
Reference in New Issue
Block a user