Ticket #8000: trac_8000-utf-8-coding-directive.2.patch

File trac_8000-utf-8-coding-directive.2.patch, 15.7 KB (added by mpatel, 13 years ago)

Fix failed doctest. Replaces previous. sagenb repo.

  • sagenb/__init__.py

    # HG changeset patch
    # User Mitesh Patel <qed777@gmail.com>
    # Date 1263958900 28800
    # Node ID 7eeca1f15191d17606a8e7f118e7734890cd98c6
    # Parent  bfe9947ca8d43a2094e47dc6fb0c6b12455ef47a
    Add # -*- coding: utf-8 -*- to the top of all SageNB .py files
    
    diff --git a/sagenb/__init__.py b/sagenb/__init__.py
    a b  
     1# -*- coding: utf-8 -*
    12  # init
  • sagenb/interfaces/__init__.py

    diff --git a/sagenb/interfaces/__init__.py b/sagenb/interfaces/__init__.py
    a b  
     1# -*- coding: utf-8 -*
    12#############################################################################
    23#
    34#       Copyright (C) 2009 William Stein <wstein@gmail.com>
  • sagenb/interfaces/expect.py

    diff --git a/sagenb/interfaces/expect.py b/sagenb/interfaces/expect.py
    a b  
     1# -*- coding: utf-8 -*
    12import os, StringIO, sys, traceback, tempfile, random, shutil
    23
    34from status import OutputStatus
  • sagenb/interfaces/format.py

    diff --git a/sagenb/interfaces/format.py b/sagenb/interfaces/format.py
    a b  
     1# -*- coding: utf-8 -*
    12from sagenb.misc.misc import unicode_str
    23
    34def displayhook_hack(string):
  • sagenb/interfaces/limits.py

    diff --git a/sagenb/interfaces/limits.py b/sagenb/interfaces/limits.py
    a b  
     1# -*- coding: utf-8 -*
    12class ProcessLimits:
    23    """
    34    INPUT:
  • sagenb/interfaces/reference.py

    diff --git a/sagenb/interfaces/reference.py b/sagenb/interfaces/reference.py
    a b  
     1# -*- coding: utf-8 -*
    12import os, StringIO, sys, traceback, tempfile
    23
    34from status import OutputStatus
  • sagenb/interfaces/status.py

    diff --git a/sagenb/interfaces/status.py b/sagenb/interfaces/status.py
    a b  
     1# -*- coding: utf-8 -*
    12import os, shutil
    23
    34class OutputStatus:
  • sagenb/interfaces/worksheet_process.py

    diff --git a/sagenb/interfaces/worksheet_process.py b/sagenb/interfaces/worksheet_process.py
    a b  
     1# -*- coding: utf-8 -*
    12"""
    23Worksheet process base clase
    34
  • sagenb/misc/__init__.py

    diff --git a/sagenb/misc/__init__.py b/sagenb/misc/__init__.py
    a b  
     1# -*- coding: utf-8 -*
    12 
  • sagenb/misc/introspect.py

    diff --git a/sagenb/misc/introspect.py b/sagenb/misc/introspect.py
    a b  
     1# -*- coding: utf-8 -*
    12"""
    23Sage Notebook Introspection
    34
  • sagenb/misc/ipaddr.py

    diff --git a/sagenb/misc/ipaddr.py b/sagenb/misc/ipaddr.py
    a b  
     1# -*- coding: utf-8 -*
    12"""nodoctests"""
    23#!/usr/bin/python
    34#
  • sagenb/misc/remote_file.py

    diff --git a/sagenb/misc/remote_file.py b/sagenb/misc/remote_file.py
    a b  
     1# -*- coding: utf-8 -*
    12import os, sys
    23
    34def get_remote_file(filename, verbose=True):
  • sagenb/misc/sageinspect.py

    diff --git a/sagenb/misc/sageinspect.py b/sagenb/misc/sageinspect.py
    a b  
     1# -*- coding: utf-8 -*
    12r"""
    23Inspect Python, Sage, and Cython objects.
    34
    Python modules:: 
    3738    Inspect Python, Sage, and Cython objects
    3839
    3940    sage: sage_getsource(sagenb.misc.sageinspect).lstrip()[5:-1]
    40     'Inspect Python, Sage, and Cython objects...'
     41    '...Inspect Python, Sage, and Cython objects...'
    4142
    4243Test introspection of classes defined in Python and Cython files:
    4344
  • sagenb/misc/sphinxify.py

    diff --git a/sagenb/misc/sphinxify.py b/sagenb/misc/sphinxify.py
    a b  
     1# -*- coding: utf-8 -*
    12#!/usr/bin/env python
    23r"""
    34Process docstrings with Sphinx
  • sagenb/misc/support.py

    diff --git a/sagenb/misc/support.py b/sagenb/misc/support.py
    a b  
     1# -*- coding: utf-8 -*
    12"""
    23Support for Notebook Introspection and Setup
    34
  • sagenb/notebook/__init__.py

    diff --git a/sagenb/notebook/__init__.py b/sagenb/notebook/__init__.py
    a b  
     1# -*- coding: utf-8 -*
    12
  • sagenb/notebook/all.py

    diff --git a/sagenb/notebook/all.py b/sagenb/notebook/all.py
    a b  
     1# -*- coding: utf-8 -*
    12"""nodoctest
    23"""
    34#############################################################################
  • sagenb/notebook/applet.py

    diff --git a/sagenb/notebook/applet.py b/sagenb/notebook/applet.py
    a b  
     1# -*- coding: utf-8 -*
    12
    23
    34class Applet:
  • sagenb/notebook/avatars.py

    diff --git a/sagenb/notebook/avatars.py b/sagenb/notebook/avatars.py
    a b  
     1# -*- coding: utf-8 -*
    12"""
    23"""
    34#####################################################################
  • sagenb/notebook/challenge.py

    diff --git a/sagenb/notebook/challenge.py b/sagenb/notebook/challenge.py
    a b  
     1# -*- coding: utf-8 -*
    12r"""
    23Notebook Registration Challenges
    34
  • sagenb/notebook/colorize.py

    diff --git a/sagenb/notebook/colorize.py b/sagenb/notebook/colorize.py
    a b  
     1# -*- coding: utf-8 -*
    12"""nodoctest
    23"""
    34
  • sagenb/notebook/compress/BaseConvert.py

    diff --git a/sagenb/notebook/compress/BaseConvert.py b/sagenb/notebook/compress/BaseConvert.py
    a b  
     1# -*- coding: utf-8 -*
    12# BaseConvert class,
    23#    converts an unsigned base 10 integer to a different base and vice versa.
    34# ______________________________________________________________
  • sagenb/notebook/compress/JavaScriptCompressor.py

    diff --git a/sagenb/notebook/compress/JavaScriptCompressor.py b/sagenb/notebook/compress/JavaScriptCompressor.py
    a b  
     1# -*- coding: utf-8 -*
    12# JavaScriptCompressor class,
    23#       removes comments or pack JavaScript source[s] code.
    34# ______________________________________________________________
  • sagenb/notebook/compress/SourceMap.py

    diff --git a/sagenb/notebook/compress/SourceMap.py b/sagenb/notebook/compress/SourceMap.py
    a b  
     1# -*- coding: utf-8 -*
    12# SourceMap class,
    23#       reads a generic language source code and returns its map.
    34# ______________________________________________________________
  • sagenb/notebook/compress/__init__.py

    diff --git a/sagenb/notebook/compress/__init__.py b/sagenb/notebook/compress/__init__.py
    a b  
     1# -*- coding: utf-8 -*
    12
  • sagenb/notebook/compress/all.py

    diff --git a/sagenb/notebook/compress/all.py b/sagenb/notebook/compress/all.py
    a b  
     1# -*- coding: utf-8 -*
  • sagenb/notebook/compress/nodoctest.py

    diff --git a/sagenb/notebook/compress/nodoctest.py b/sagenb/notebook/compress/nodoctest.py
    a b  
     1# -*- coding: utf-8 -*
  • sagenb/notebook/conf.py

    diff --git a/sagenb/notebook/conf.py b/sagenb/notebook/conf.py
    a b  
     1# -*- coding: utf-8 -*
    12"""nodoctest
    23Configuration
    34"""
  • sagenb/notebook/config.py

    diff --git a/sagenb/notebook/config.py b/sagenb/notebook/config.py
    a b  
     1# -*- coding: utf-8 -*
    12"""
    23Notebook Keybindings
    34
  • sagenb/notebook/css.py

    diff --git a/sagenb/notebook/css.py b/sagenb/notebook/css.py
    a b  
     1# -*- coding: utf-8 -*
    12"""nodoctest
    23Notebook Stylesheets (CSS)
    34"""
  • sagenb/notebook/docHTMLProcessor.py

    diff --git a/sagenb/notebook/docHTMLProcessor.py b/sagenb/notebook/docHTMLProcessor.py
    a b  
     1# -*- coding: utf-8 -*
    12"""
    23Live Documentation in the Notebook
    34
  • sagenb/notebook/gnutls_socket_ssl.py

    diff --git a/sagenb/notebook/gnutls_socket_ssl.py b/sagenb/notebook/gnutls_socket_ssl.py
    a b  
     1# -*- coding: utf-8 -*
    12import socket
    23
    34class GnuTLSSocketSSL:
  • sagenb/notebook/guard.py

    diff --git a/sagenb/notebook/guard.py b/sagenb/notebook/guard.py
    a b  
     1# -*- coding: utf-8 -*
    12"""nodoctest
    23Keep out the bad guys.
    34"""
  • sagenb/notebook/interact.py

    diff --git a/sagenb/notebook/interact.py b/sagenb/notebook/interact.py
    a b  
     1# -*- coding: utf-8 -*
    12#############################################################################
    23#       Copyright (C) 2008 William Stein <wstein@gmail.com>
    34#  Distributed under the terms of the GNU General Public License (GPL)
  • sagenb/notebook/jquery.py

    diff --git a/sagenb/notebook/jquery.py b/sagenb/notebook/jquery.py
    a b  
     1# -*- coding: utf-8 -*
    12import interact
    23
    34def javascript(s):
  • sagenb/notebook/js.py

    diff --git a/sagenb/notebook/js.py b/sagenb/notebook/js.py
    a b  
     1# -*- coding: utf-8 -*
    12r"""nodoctest
    23JavaScript (AJAX) Components of the Notebook
    34
  • sagenb/notebook/jsmath.py

    diff --git a/sagenb/notebook/jsmath.py b/sagenb/notebook/jsmath.py
    a b  
     1# -*- coding: utf-8 -*
    12"""
    23jsMath support for the notebook
    34
  • sagenb/notebook/keyboards.py

    diff --git a/sagenb/notebook/keyboards.py b/sagenb/notebook/keyboards.py
    a b  
     1# -*- coding: utf-8 -*
    12"""
    23Keyboard maps for the Sage Notebook
    34
  • sagenb/notebook/mailsender.py

    diff --git a/sagenb/notebook/mailsender.py b/sagenb/notebook/mailsender.py
    a b  
     1# -*- coding: utf-8 -*
    12"""nodoctest
    23"""
    34
  • sagenb/notebook/misc.py

    diff --git a/sagenb/notebook/misc.py b/sagenb/notebook/misc.py
    a b  
     1# -*- coding: utf-8 -*
    12"""
    23Miscellaneus functions used by the Sage Notebook
    34
  • sagenb/notebook/notebook.py

    diff --git a/sagenb/notebook/notebook.py b/sagenb/notebook/notebook.py
    a b  
     1# -*- coding: utf-8 -*
    12"""
    23The Sage Notebook
    34
  • sagenb/notebook/notebook_object.py

    diff --git a/sagenb/notebook/notebook_object.py b/sagenb/notebook/notebook_object.py
    a b  
     1# -*- coding: utf-8 -*
    12"""nodoctest
    23"""
    34#############################################################################
  • sagenb/notebook/register.py

    diff --git a/sagenb/notebook/register.py b/sagenb/notebook/register.py
    a b  
     1# -*- coding: utf-8 -*
    12"""nodoctest
    23"""
    34
  • sagenb/notebook/run_notebook.py

    diff --git a/sagenb/notebook/run_notebook.py b/sagenb/notebook/run_notebook.py
    a b  
     1# -*- coding: utf-8 -*
    12"""nodoctest
    23Server the Sage Notebook.
    34"""
  • sagenb/notebook/sage_email.py

    diff --git a/sagenb/notebook/sage_email.py b/sagenb/notebook/sage_email.py
    a b  
     1# -*- coding: utf-8 -*
    12"""
    23Send an Email
    34
  • sagenb/notebook/sagetex.py

    diff --git a/sagenb/notebook/sagetex.py b/sagenb/notebook/sagetex.py
    a b  
     1# -*- coding: utf-8 -*
    12import os
    23
    34from notebook_object import notebook
  • sagenb/notebook/secureuser.py

    diff --git a/sagenb/notebook/secureuser.py b/sagenb/notebook/secureuser.py
    a b  
     1# -*- coding: utf-8 -*
    12"""nodoctest
    23"""
    34
  • sagenb/notebook/server_conf.py

    diff --git a/sagenb/notebook/server_conf.py b/sagenb/notebook/server_conf.py
    a b  
     1# -*- coding: utf-8 -*
    12"""nodoctest
    23"""
    34
  • sagenb/notebook/smtpsend.py

    diff --git a/sagenb/notebook/smtpsend.py b/sagenb/notebook/smtpsend.py
    a b  
     1# -*- coding: utf-8 -*
    12"""nodoctest
    23"""
    34
  • sagenb/notebook/tutorial.py

    diff --git a/sagenb/notebook/tutorial.py b/sagenb/notebook/tutorial.py
    a b  
     1# -*- coding: utf-8 -*
    12"""nodoctest
    23"""
    34
  • sagenb/notebook/twist.py

    diff --git a/sagenb/notebook/twist.py b/sagenb/notebook/twist.py
    a b  
     1# -*- coding: utf-8 -*
    12r"""
    23The Sage Notebook Twisted Web Server
    34
  • sagenb/notebook/user.py

    diff --git a/sagenb/notebook/user.py b/sagenb/notebook/user.py
    a b  
     1# -*- coding: utf-8 -*
    12import copy
    23import crypt
    34import cPickle
  • sagenb/notebook/user_conf.py

    diff --git a/sagenb/notebook/user_conf.py b/sagenb/notebook/user_conf.py
    a b  
     1# -*- coding: utf-8 -*
    12"""nodoctest
    23"""
    34import copy
  • sagenb/notebook/user_db.py

    diff --git a/sagenb/notebook/user_db.py b/sagenb/notebook/user_db.py
    a b  
     1# -*- coding: utf-8 -*
    12"""nodoctest
    23"""
    34
  • sagenb/notebook/wiki2html.py

    diff --git a/sagenb/notebook/wiki2html.py b/sagenb/notebook/wiki2html.py
    a b  
     1# -*- coding: utf-8 -*
    12"""nodoctest
    23"""
    34
  • sagenb/simple/__init__.py

    diff --git a/sagenb/simple/__init__.py b/sagenb/simple/__init__.py
    a b  
     1# -*- coding: utf-8 -*
  • sagenb/simple/twist.py

    diff --git a/sagenb/simple/twist.py b/sagenb/simple/twist.py
    a b  
     1# -*- coding: utf-8 -*
    12r"""nodoctest
    23Simple Sage Server API
    34
  • sagenb/storage/__init__.py

    diff --git a/sagenb/storage/__init__.py b/sagenb/storage/__init__.py
    a b  
     1# -*- coding: utf-8 -*
    12
    23
    34
  • sagenb/storage/abstract_storage.py

    diff --git a/sagenb/storage/abstract_storage.py b/sagenb/storage/abstract_storage.py
    a b  
     1# -*- coding: utf-8 -*
    12"""
    23Sage Notebook Storage Abstraction Layer
    34"""
  • sagenb/storage/filesystem_storage.py

    diff --git a/sagenb/storage/filesystem_storage.py b/sagenb/storage/filesystem_storage.py
    a b  
     1# -*- coding: utf-8 -*
    12"""
    23A Filesystem-based Sage Notebook Datastore
    34
  • sagenb/testing/HTMLTestRunner.py

    diff --git a/sagenb/testing/HTMLTestRunner.py b/sagenb/testing/HTMLTestRunner.py
    a b  
     1# -*- coding: utf-8 -*
    12"""
    23HTML Test Runner
    34
  • sagenb/testing/__init__.py

    diff --git a/sagenb/testing/__init__.py b/sagenb/testing/__init__.py
    a b  
     1# -*- coding: utf-8 -*
    12# Code for stress testing of notebook servers
  • sagenb/testing/run_tests.py

    diff --git a/sagenb/testing/run_tests.py b/sagenb/testing/run_tests.py
    a b  
     1# -*- coding: utf-8 -*
    12#!/usr/bin/env python
    23# -*- coding: utf-8 -*-
    34"""
  • sagenb/testing/selenium/__init__.py

    diff --git a/sagenb/testing/selenium/__init__.py b/sagenb/testing/selenium/__init__.py
    a b  
     1# -*- coding: utf-8 -*
    12 
  • sagenb/testing/selenium/selenium.py

    diff --git a/sagenb/testing/selenium/selenium.py b/sagenb/testing/selenium/selenium.py
    a b  
     1# -*- coding: utf-8 -*
    12
    23"""
    34Copyright 2006 ThoughtWorks, Inc.
  • sagenb/testing/stress.py

    diff --git a/sagenb/testing/stress.py b/sagenb/testing/stress.py
    a b  
     1# -*- coding: utf-8 -*
    12import re
    23import urllib2
    34
  • sagenb/testing/tests/__init__.py

    diff --git a/sagenb/testing/tests/__init__.py b/sagenb/testing/tests/__init__.py
    a b  
     1# -*- coding: utf-8 -*
    12import test_accounts, test_worksheet, test_worksheet_list