Commits

Lynn Rees committed d452236

- fixes

Comments (0)

Files changed (1)

 one = partial(rcompile(r'[^\w\s-]').sub, '')
 # second slug pattern
 two = partial(rcompile(r'[-\s]+').sub, '-')
-# count
+# counter
 count = partial(next, count())
-# light range
+# light weight  range
 lrange = partial(repeat, None)
 # unique identifier selection
 unique_id = lambda: b(uuid4().hex.upper())
     :argument path: something to load
     :keyword str attribute: attribute on loaded module to return
     '''
-    if s(path):
-        return importer(path, attribute)
-    return path
+    return importer(path, attribute) if s(path) else path
 
 # import loader
 lazyload = partial(
                         root[KEY] = None
                         root[RESULT] = None
                 return result
-
         def clear():
             # clear the cache and cache statistics
             with lock:
     gets = s()
     # (arg, startpos, stoppos) for the PUT opcodes set to pos if previous
     # opcode was a PUT
-
     def iterthing(gadd=gets.add, this=this, g=g, n=n):  # @IgnorePep8
         prevpos, prevarg = None, None
         try:
                     gadd(arg)
         except S:
             pass
-    # Copy the pickle string except for PUTS without a corresponding GET
-
+    # copy the pickle string except for PUTS without a corresponding GET
     def iterthingy(iterthing=iterthing(), this=this, n=n):  # @IgnorePep8
         i = 0
         try:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.