1. Alessio Deiana
  2. invenio-devserver

Commits

Alessio Deiana  committed 4ff07d4

Removes extra backslashes

  • Participants
  • Parent commits 7580837
  • Branches master

Comments (0)

Files changed (1)

File src/invenio_devserver/serve.py

View file
         invenio_path = [invenio_path]
 
     def iter_files(dirname, filenames):
-        return (os.path.join(dirname, filename) \
+        return (os.path.join(dirname, filename)
                       for filename in filenames if valid_extension(filename))
 
     def iter_folder(folder):
         return chain(*(
-            iter_files(dirname, filenames) \
+            iter_files(dirname, filenames)
                                 for dirname, _, filenames in os.walk(folder)
         ))
 
 
 def update_conf():
     _log('info', ' * Updating configuration')
-    ret = os.system('%s/bin/inveniocfg --update-config-py' \
+    ret = os.system('%s/bin/inveniocfg --update-config-py'
                                                          % config.INSTALL_PATH)
     if ret == 0:
         _log('info', 'done updating')
                     dest = select_destination_path(filename)
 
                 if dest:
-                    _log('info', ' * Detected change in %r, '\
+                    _log('info', ' * Detected change in %r, '
                                         'copying to %s' % (filename, dest))
                     shutil.copyfile(filename, dest)
                 else:
 
     def timed_out_request(f, *args, **kwargs):
         def handler(signum, frame):
-            _log('info', "\033[01;31mYour request took more than %s" \
+            _log('info', "\033[01;31mYour request took more than %s"
                          " seconds to process\033[0m" % config.REQUEST_TIMEOUT)
         signal.signal(signal.SIGALRM, handler)
         signal.alarm(config.REQUEST_TIMEOUT)
     parser.add_option('-p', dest='bind_port', type='int', default=4000,
                                     help='Port to bind to')
     parser.add_option('--no-reload', action='store_false', dest='auto_reload',
-                      default=True, help='Disable automatic reloading\n'\
+                      default=True, help='Disable automatic reloading\n'
                       'when a source file is changed')
     parser.add_option('--no-http', action='store_false', dest='serve_http',
-                      default=True, help='Disable http server, only update ' \
+                      default=True, help='Disable http server, only update '
                       'invenio install')
     parser.add_option('--pdb', dest='use_pdb', default=False,
-                      action='store_true', help='Drop to python debugger\n' \
+                      action='store_true', help='Drop to python debugger\n'
                       'on errors')
     parser.add_option('-s', action='append', dest='src_path', metavar='SRC_PATH',
                       default=[], help='Source folder (one or more)')