diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/jupyter_server_proxy/config.py b/jupyter_server_proxy/config.py index <HASH>..<HASH> 100644 --- a/jupyter_server_proxy/config.py +++ b/jupyter_server_proxy/config.py @@ -22,7 +22,8 @@ def _make_serverproxy_handler(name, command, environment, timeout): @property def process_args(self): ...
base_url can be included in the command template
py
diff --git a/xray/test/test_dataarray.py b/xray/test/test_dataarray.py index <HASH>..<HASH> 100644 --- a/xray/test/test_dataarray.py +++ b/xray/test/test_dataarray.py @@ -1351,13 +1351,13 @@ class TestDataArray(TestCase): self.assertEqual(masked_array[0, 0], 10.) self.assertEqual(da[0, 0].values, 10.)...
use assertIsInstance in masked_array tests
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -60,11 +60,10 @@ extras_require = { 'dev': [ 'wheel>=0.29.0', 'twine>=1.8.1', - 'pytest==3.0.4', - 'pytest-cov==2.4.0', - 'pytest-flake8==0.8.1', + 'pytest==4.2.0', + '...
Update test dependencies These are all the latest versions of documenteer's test dependencies: pytest==<I> pytest-cov==<I> pytest-flake8==<I> pytest-mock is already current
py
diff --git a/russell/blog.py b/russell/blog.py index <HASH>..<HASH> 100644 --- a/russell/blog.py +++ b/russell/blog.py @@ -190,6 +190,8 @@ class Blog(): self.convert_post(f) # sort posts by pubdate (newest first) before generating home/archives + # on identical pubdate, sort by title + ...
on identical pubdates, sort by title
py
diff --git a/pyzotero/zotero.py b/pyzotero/zotero.py index <HASH>..<HASH> 100644 --- a/pyzotero/zotero.py +++ b/pyzotero/zotero.py @@ -75,10 +75,14 @@ def extract_links(doc): """ Extract self, first, next, last links from an Atom doc """ extracted = dict() - for link in doc['feed']['links'][:-1]: - ...
Continue even if first, next, last links can't be found in response
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -108,6 +108,12 @@ setup( "asvspoof2017-spoof = bob.bio.spear.config.database.asvspoof2017:database_spoof", "voxforge = bob.bio.spear.config.database.voxforge:database", ], + ...
Add annotators resources in setup.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ tests_require = [ # http://docs.python-requests.org/en/latest/community/release-process/ install_requires = [ 'requests>=2.4.3,<3', - # 'mohawk>0.3.0', + 'mohawk>=0.3.1', 'slugid', ]
use the now released mohawk <I>
py
diff --git a/examples/models/file/daylight.py b/examples/models/file/daylight.py index <HASH>..<HASH> 100644 --- a/examples/models/file/daylight.py +++ b/examples/models/file/daylight.py @@ -1,3 +1,13 @@ +''' A plot showing the daylight hours in a city's local time (which are +discontinuous due to summer time) using th...
Add metadata to examples/models/file/daylight.py (#<I>) (#<I>) * Add metadata to examples/models/file/daylight.py (#<I>) * Edit examples/models/file/daylight.py metadata
py
diff --git a/mpop/satin/eps_avhrr.py b/mpop/satin/eps_avhrr.py index <HASH>..<HASH> 100644 --- a/mpop/satin/eps_avhrr.py +++ b/mpop/satin/eps_avhrr.py @@ -748,9 +748,10 @@ CASES = {"MPHR": read_mphr, EPSILON = 0.001 -def load(satscene): +def load(satscene, *args, **kwargs): """Read data from file and load it ...
Bugfix: eps_avhrr adapted to new plugin format.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ license: GNU-GPL2 from setuptools import setup setup(name='arguments', - version='53', + version='54', description='Argument parser based on docopt', url='https://github.com/erikdejonge...
Charles Baudelaire: The qualities I most admire in women are confidence and kindness. Thursday <I> June <I> (week:<I> day:<I>), <I>:<I>:<I>
py
diff --git a/ykman/cli/fido.py b/ykman/cli/fido.py index <HASH>..<HASH> 100755 --- a/ykman/cli/fido.py +++ b/ykman/cli/fido.py @@ -666,9 +666,22 @@ def bio_delete(ctx, template_id, pin, force): bio = _init_bio(ctx, pin) enrollments = bio.enumerate_enrollments() - key = bytes.fromhex(template_id) + try...
Allow deletion of templates based on name.
py
diff --git a/isso/ext/notifications.py b/isso/ext/notifications.py index <HASH>..<HASH> 100644 --- a/isso/ext/notifications.py +++ b/isso/ext/notifications.py @@ -41,7 +41,7 @@ class SMTP(object): with self: logger.info("connected to SMTP server") except (socket.error, smtplib.SMT...
show traceback when smtp connection failed
py
diff --git a/threadloop/threadloop.py b/threadloop/threadloop.py index <HASH>..<HASH> 100644 --- a/threadloop/threadloop.py +++ b/threadloop/threadloop.py @@ -7,6 +7,10 @@ from tornado import ioloop from .exceptions import ThreadNotStartedError +# Python3's concurrent.futures.Future doesn't allow +# setting exc_in...
exception propagation should work with python2 and python3
py
diff --git a/aiohttp_mako/__init__.py b/aiohttp_mako/__init__.py index <HASH>..<HASH> 100644 --- a/aiohttp_mako/__init__.py +++ b/aiohttp_mako/__init__.py @@ -43,15 +43,12 @@ def render_string(template_name, request, context, *, app_key): try: text = template.render_unicode(**context) except Exceptio...
remove useless try/finally when template is not found
py
diff --git a/pymc3/distributions/transforms.py b/pymc3/distributions/transforms.py index <HASH>..<HASH> 100644 --- a/pymc3/distributions/transforms.py +++ b/pymc3/distributions/transforms.py @@ -109,18 +109,19 @@ class Interval(ElemwiseTransform): name = "interval" - def __init__(self, a, b): + def __ini...
Added epsilon to numerator and denominator of Interval.forward
py
diff --git a/setuptools/tests/test_test.py b/setuptools/tests/test_test.py index <HASH>..<HASH> 100644 --- a/setuptools/tests/test_test.py +++ b/setuptools/tests/test_test.py @@ -53,7 +53,7 @@ TEST_PY = DALS(""" class TestTestTest: def setup_method(self, method): - if sys.version < "2.6" or hasattr(sys, ...
Python <I> can be assumed
py
diff --git a/jtime/jtime.py b/jtime/jtime.py index <HASH>..<HASH> 100644 --- a/jtime/jtime.py +++ b/jtime/jtime.py @@ -53,7 +53,7 @@ def configure(): connection.jira_connection(configuration.load_config()) except jira_exceptions.JIRAError as e: configuration._delete_config() - logging.erro...
Adding more info to the jtime error message.
py
diff --git a/cloudvolume/skeletonservice.py b/cloudvolume/skeletonservice.py index <HASH>..<HASH> 100644 --- a/cloudvolume/skeletonservice.py +++ b/cloudvolume/skeletonservice.py @@ -12,6 +12,7 @@ import struct from . import lib from .lib import red +from .txrx import cdn_cache_control from .storage import Storage...
fix: skeleton upload respects cdn_cache setting
py
diff --git a/spyder/widgets/editor.py b/spyder/widgets/editor.py index <HASH>..<HASH> 100644 --- a/spyder/widgets/editor.py +++ b/spyder/widgets/editor.py @@ -1318,6 +1318,9 @@ class EditorStack(QWidget): # Save the currently edited file index = self.get_stack_index() finfo = self.d...
Added comment about the necessity of the change
py
diff --git a/test/test_big_phi.py b/test/test_big_phi.py index <HASH>..<HASH> 100644 --- a/test/test_big_phi.py +++ b/test/test_big_phi.py @@ -145,6 +145,7 @@ rule152_answer = { 'cuts': [ models.Cut(severed=(0, 1, 2, 3), intact=(4,)), models.Cut(severed=(0, 1, 2, 4), intact=(3,)), + models...
Update `rule_<I>` answer cuts
py
diff --git a/examples/app.py b/examples/app.py index <HASH>..<HASH> 100644 --- a/examples/app.py +++ b/examples/app.py @@ -96,7 +96,7 @@ def publish_filedownload(nb_events, user_id, filename, def events(): # Create events nb_days = 20 - day = datetime(2016, 12, 1, 10, 11, 12, 123) + day = datetime(2016...
example: fix example events creation. * Fixes the events creation in the example application.
py
diff --git a/ntfy/backends/pushover.py b/ntfy/backends/pushover.py index <HASH>..<HASH> 100644 --- a/ntfy/backends/pushover.py +++ b/ntfy/backends/pushover.py @@ -1,10 +1,10 @@ import requests -def notify(title, message, api_token, user_key, device=None, **kwargs): +def notify(title, message, user_key, + ...
include default pushover key No need for user to set up their own pushover app.
py
diff --git a/src/datashare/azext_datashare/manual/_help.py b/src/datashare/azext_datashare/manual/_help.py index <HASH>..<HASH> 100644 --- a/src/datashare/azext_datashare/manual/_help.py +++ b/src/datashare/azext_datashare/manual/_help.py @@ -278,6 +278,8 @@ helps['datashare invitation delete'] = """ helps['datashare'...
add reference link in help (#<I>)
py
diff --git a/vais/character.py b/vais/character.py index <HASH>..<HASH> 100644 --- a/vais/character.py +++ b/vais/character.py @@ -24,7 +24,7 @@ class RefFile(object): def __str__(self): res = ' === ' + self.name + ' Reference File ====\n' res += str(len(self.dat)) + ' lines = ' - for row...
removed enumerate for unused loop caused probs on linux but not windows
py
diff --git a/pyof/foundation/basic_types.py b/pyof/foundation/basic_types.py index <HASH>..<HASH> 100644 --- a/pyof/foundation/basic_types.py +++ b/pyof/foundation/basic_types.py @@ -459,7 +459,7 @@ class BinaryData(GenericType): """ if value is None: return len(self._value) - elif...
Fix get_size used by BinaryData - This commit fix when another GenericType is used into BinaryData attribute and is called the get_size method.
py
diff --git a/two_factor/models.py b/two_factor/models.py index <HASH>..<HASH> 100644 --- a/two_factor/models.py +++ b/two_factor/models.py @@ -25,7 +25,7 @@ class VerifiedComputer(models.Model): class Token(models.Model): user = models.OneToOneField(User, verbose_name=_('user')) - seed = models.CharField(_('...
Increase seed length in database to fit default
py
diff --git a/openfisca_survey_manager/scenarios.py b/openfisca_survey_manager/scenarios.py index <HASH>..<HASH> 100644 --- a/openfisca_survey_manager/scenarios.py +++ b/openfisca_survey_manager/scenarios.py @@ -723,9 +723,23 @@ class AbstractSurveyScenario(object): collective_entity.count = len(input...
Fix usage of legacy_role broken by core <I>
py
diff --git a/openquake/logs.py b/openquake/logs.py index <HASH>..<HASH> 100644 --- a/openquake/logs.py +++ b/openquake/logs.py @@ -53,10 +53,8 @@ flags.DEFINE_string('logfile', '', # TODO: get rid of this LOG = logging.getLogger() -LOGGING_AMQP_FORMAT = '%(asctime)s %(loglevel)-5s %(processName)s' \ - ' [%(name)...
added hostname to stderr log format
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -68,11 +68,18 @@ copyright = u'2018, DLR' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built docume...
docs(conf.py): Infer version for VERSION file (instead of hardcoding)
py
diff --git a/runtests/mpi/tester.py b/runtests/mpi/tester.py index <HASH>..<HASH> 100644 --- a/runtests/mpi/tester.py +++ b/runtests/mpi/tester.py @@ -271,7 +271,7 @@ class Tester(BaseTester): covargs['html_cov'] = args.html_cov if args.mpisub: - self._begin_capture() + self._b...
avoid capture in MPI mode if capture=no is set. This eases debugging a bit. We shall also pass along -pdb.
py
diff --git a/mailqueue/admin.py b/mailqueue/admin.py index <HASH>..<HASH> 100644 --- a/mailqueue/admin.py +++ b/mailqueue/admin.py @@ -1,13 +1,19 @@ from django.contrib import admin from django.conf import settings -from mailqueue.models import MailerMessage +from mailqueue.models import MailerMessage, Attachment ...
Adding inline support for attachments.
py
diff --git a/_pytest/doctest.py b/_pytest/doctest.py index <HASH>..<HASH> 100644 --- a/_pytest/doctest.py +++ b/_pytest/doctest.py @@ -118,7 +118,7 @@ class DoctestItem(pytest.Item): if capman: out, err = capman.suspend_global_capture(in_=True) sys.stdout.write(out) - sys.s...
Probably it's best to write the err stream to stderr.
py
diff --git a/pelix/remote/edef_io.py b/pelix/remote/edef_io.py index <HASH>..<HASH> 100644 --- a/pelix/remote/edef_io.py +++ b/pelix/remote/edef_io.py @@ -414,7 +414,11 @@ class EDEFWriter(object): tree = ElementTree.ElementTree(root) # Force the default name space - ElementTree.register_name...
Small patch for Python <I> support In Python <I>, ElementTree.register_namespace() does not exist.
py
diff --git a/jsone/builtins.py b/jsone/builtins.py index <HASH>..<HASH> 100644 --- a/jsone/builtins.py +++ b/jsone/builtins.py @@ -9,13 +9,13 @@ builtins = {} def builtin(name, variadic=None, argument_tests=None, minArgs=None): def wrap(fn): - def bad(): - raise ExpressionError('invalid argume...
better error message when passing too few args to a builtin
py
diff --git a/datapipelines/__init__.py b/datapipelines/__init__.py index <HASH>..<HASH> 100644 --- a/datapipelines/__init__.py +++ b/datapipelines/__init__.py @@ -1,8 +1,8 @@ from .common import PipelineContext, UnsupportedError, NotFoundError, TYPE_WILDCARD from .pipelines import DataPipeline, NoConversionError fro...
export Composite source/sinks/transformer
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -49,11 +49,12 @@ setuptools_kwargs = { try: import Cython - ver = Cython.__version__ + _CYTHON_VERSION = Cython.__version__ from Cython.Build import cythonize - _CYTHON_INSTALLED = ver >= LooseVersion(m...
BLD: more informative error message when trying to cythonize with old cython version (#<I>)
py
diff --git a/indra/explanation/model_checker/model_checker.py b/indra/explanation/model_checker/model_checker.py index <HASH>..<HASH> 100644 --- a/indra/explanation/model_checker/model_checker.py +++ b/indra/explanation/model_checker/model_checker.py @@ -4,6 +4,7 @@ import itertools import numpy as np import networkx...
Handle some exceptions with path search
py
diff --git a/FlowCal/excel_ui.py b/FlowCal/excel_ui.py index <HASH>..<HASH> 100644 --- a/FlowCal/excel_ui.py +++ b/FlowCal/excel_ui.py @@ -1509,9 +1509,10 @@ def run_command_line(args=None): """ # Get arguments from ``sys.argv`` if necessary. - # ``sys.argv`` has the name of the script as its first eleme...
Clarified comment on sys.argv[1:] utilization.
py
diff --git a/wafer/snippets/markdown_field.py b/wafer/snippets/markdown_field.py index <HASH>..<HASH> 100644 --- a/wafer/snippets/markdown_field.py +++ b/wafer/snippets/markdown_field.py @@ -2,10 +2,11 @@ # Copyright carljm (http://djangosnippets.org/users/carljm/) from django.db.models import TextField +from so...
Describe to South how to handle MarkdownTextFields.
py
diff --git a/blockstack_client/storage.py b/blockstack_client/storage.py index <HASH>..<HASH> 100644 --- a/blockstack_client/storage.py +++ b/blockstack_client/storage.py @@ -363,7 +363,7 @@ def parse_mutable_data(mutable_data_json_txt, public_key, public_key_hash=None): # try pubkey, if given if public_key i...
make sure the public key is a string
py
diff --git a/securesystemslib/gpg/common.py b/securesystemslib/gpg/common.py index <HASH>..<HASH> 100644 --- a/securesystemslib/gpg/common.py +++ b/securesystemslib/gpg/common.py @@ -127,7 +127,7 @@ def parse_signature_packet(data): raise in_toto.gpg.PacketParsingError("can't parse the full keyid on " ...
Re-add keyid to gpg signature dictionary <I>b<I>cf<I>cd<I>c7a<I>d<I>c0fdba2ad<I> changed the way the keyid is parsed from gpg signatures and accidentally removed the keyid from the signature dict. This commit re-adds it.
py
diff --git a/salt/pillar/__init__.py b/salt/pillar/__init__.py index <HASH>..<HASH> 100644 --- a/salt/pillar/__init__.py +++ b/salt/pillar/__init__.py @@ -379,7 +379,7 @@ class Pillar(object): ] else: for saltenv in self._get_envs(): - if self.op...
Let's not break when no merging strategy is passed
py
diff --git a/src/__init__.py b/src/__init__.py index <HASH>..<HASH> 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -299,6 +299,7 @@ RAW_CURVES = ( b"69", 1, 79), ) +curves = [r[0] for r in RAW_CURVES] # Arithmetic on elliptic curves # ###############################################...
Add curves variable containing the names of supported curves
py
diff --git a/angr/surveyors/explorer.py b/angr/surveyors/explorer.py index <HASH>..<HASH> 100644 --- a/angr/surveyors/explorer.py +++ b/angr/surveyors/explorer.py @@ -183,6 +183,10 @@ class Explorer(Surveyor): self.avoided.append(p) return False elif self._match(self._find, p, imark_set): + if not p.state....
make sure found paths are satisfiable
py
diff --git a/examples/plotting/file/boxplot.py b/examples/plotting/file/boxplot.py index <HASH>..<HASH> 100644 --- a/examples/plotting/file/boxplot.py +++ b/examples/plotting/file/boxplot.py @@ -28,11 +28,8 @@ out = groups.apply(outliers).dropna() # prepare outlier data for plotting, we need coordinates for every ou...
<I> resolve feature <I>. tested and working. (#<I>) * <I> resolve feature <I>. tested and working. * <I> removing trailing whitespaces line <I>
py
diff --git a/tests/test_templatetags.py b/tests/test_templatetags.py index <HASH>..<HASH> 100644 --- a/tests/test_templatetags.py +++ b/tests/test_templatetags.py @@ -205,7 +205,9 @@ class Actor(Model): @override_settings( INSTALLED_APPS=['django', 'django_bootstrap_breadcrumbs', 'tests'], TEMPLATES=[{'BACKE...
urls are not loaded under <I>, override with settings
py
diff --git a/throw.py b/throw.py index <HASH>..<HASH> 100755 --- a/throw.py +++ b/throw.py @@ -14,7 +14,8 @@ def main(): action='append', help='a recipient for the file(s).') parser.add_argument('-n', '--name', dest='name', metavar='NAME', - action='store', default=None) + action='...
add some help text to the -n option
py
diff --git a/tmuxp/testsuite/test_pane.py b/tmuxp/testsuite/test_pane.py index <HASH>..<HASH> 100644 --- a/tmuxp/testsuite/test_pane.py +++ b/tmuxp/testsuite/test_pane.py @@ -52,3 +52,5 @@ class ResizeTest(TmuxTestCase): pane1.set_width(25) self.assertNotEqual(pane1['pane_width'], pane1_width) ...
add Pane.reset() to test_pane testsuite for giggles
py
diff --git a/test/test_database.py b/test/test_database.py index <HASH>..<HASH> 100644 --- a/test/test_database.py +++ b/test/test_database.py @@ -250,10 +250,10 @@ class TestGetSessionContextManagerUnit: worker_ctx = Mock(spec=WorkerContext) db = dependency_provider.get_dependency(worker_ctx) - ...
Test final closing - either on exit or by worker teardown
py
diff --git a/master/buildbot/data/types.py b/master/buildbot/data/types.py index <HASH>..<HASH> 100644 --- a/master/buildbot/data/types.py +++ b/master/buildbot/data/types.py @@ -44,7 +44,13 @@ class Type(object): raise TypeError def cmp(self, val, arg): - return cmp(val, self.valueFromString(arg...
cmp() is gone in Python 3
py
diff --git a/cumulusci/newcli/cli.py b/cumulusci/newcli/cli.py index <HASH>..<HASH> 100644 --- a/cumulusci/newcli/cli.py +++ b/cumulusci/newcli/cli.py @@ -663,7 +663,7 @@ def flow_info(config, flow_name): @click.option('--delete-org', is_flag=True, help="If set, deletes the scratch org after the flow completes") @cli...
flow_run should accept debug argument
py
diff --git a/gui/controls/listview.py b/gui/controls/listview.py index <HASH>..<HASH> 100644 --- a/gui/controls/listview.py +++ b/gui/controls/listview.py @@ -350,6 +350,9 @@ class ListModel(dict): self._list_view.wx_obj.DeleteItem(position) self._ordered_list.remove(key) + def __call__(self):...
added __call__ shortcut for items() in ListModel
py
diff --git a/eventsourcing/application/main.py b/eventsourcing/application/main.py index <HASH>..<HASH> 100644 --- a/eventsourcing/application/main.py +++ b/eventsourcing/application/main.py @@ -50,12 +50,14 @@ class EventSourcingWithSQLAlchemy(EventSourcingApplication): class EventSourcingWithCassandra(EventSourcin...
Exposed Cassandra connection params as application constructor params.
py
diff --git a/bugzilla/base.py b/bugzilla/base.py index <HASH>..<HASH> 100644 --- a/bugzilla/base.py +++ b/bugzilla/base.py @@ -620,8 +620,7 @@ class BugzillaBase(object): '''Attempt to log in using the given username and password. Subsequent method calls will use this username and password. Returns Fa...
base: Dropped login() doc reference to logged_in
py
diff --git a/src/toil/jobGraph.py b/src/toil/jobGraph.py index <HASH>..<HASH> 100644 --- a/src/toil/jobGraph.py +++ b/src/toil/jobGraph.py @@ -128,7 +128,7 @@ class JobGraph(JobNode): """ assert self.checkpoint is not None successorsDeleted = [] - if len(self.stack) > 0 or len(self.ser...
len(list) != 0 changed to simple bool check in jobGraph.
py
diff --git a/pysd/py_backend/builder.py b/pysd/py_backend/builder.py index <HASH>..<HASH> 100644 --- a/pysd/py_backend/builder.py +++ b/pysd/py_backend/builder.py @@ -598,7 +598,7 @@ def add_ext_data(identifier, file_name, tab, time_row_or_col, cell, subs, subscr coords = utils.make_coord_dict(subs, subscript_dict...
Add undescore to ext_data identifier
py
diff --git a/pysatMagVect/_core.py b/pysatMagVect/_core.py index <HASH>..<HASH> 100644 --- a/pysatMagVect/_core.py +++ b/pysatMagVect/_core.py @@ -414,7 +414,10 @@ def field_line_trace(init, date, direction, height, steps=None, return np.vstack((trace_north, trace_north1)) else: # return results ...
Added height filter to field line tracing
py
diff --git a/ykman/piv.py b/ykman/piv.py index <HASH>..<HASH> 100644 --- a/ykman/piv.py +++ b/ykman/piv.py @@ -256,6 +256,16 @@ class SW(IntEnum): AUTHENTICATION_BLOCKED = 0x6983 INCORRECT_PARAMETERS = 0x6a80 + @classmethod + def is_verify_fail(cls, sw): + return 0x63c0 <= sw <= 0x63c3 + + @...
Add class methods for inspecting verify fail (0x<I>cX) status words
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ except (IOError, ImportError): long_description = open('README.md').read() setup( - name='WTForms Dynamic Fields', + name='WTForms-Dynamic-Fields', version=wtforms_dynamic_fields.__version__, ...
Corrected name for SetupTools.
py
diff --git a/pandas/io/html.py b/pandas/io/html.py index <HASH>..<HASH> 100644 --- a/pandas/io/html.py +++ b/pandas/io/html.py @@ -577,7 +577,7 @@ class _BeautifulSoupHtml5LibFrameParser(_HtmlFrameParser): for elem in table.find_all(style=re.compile(r"display:\s*none")): elem.decom...
fix ci-failure from bs4 new version (#<I>)
py
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py index <HASH>..<HASH> 100644 --- a/sos/plugins/__init__.py +++ b/sos/plugins/__init__.py @@ -319,7 +319,13 @@ class Plugin(object): self.soslog.debug("copying file %s to %s" % (srcpath,dest)) try: - self.archive.add_file(srcpat...
Handle non-readable files better in doCopyFileOrDir Currently a non-readable file causes an exception and resulting error logging as the path is passed blindly to archive.add_file(). There are legitimate reasons why directories colleceted by sos may contain files not readable by root, e.g. in sysfs where there are num...
py
diff --git a/will/listener.py b/will/listener.py index <HASH>..<HASH> 100644 --- a/will/listener.py +++ b/will/listener.py @@ -21,7 +21,7 @@ class WillXMPPClientMixin(ClientXMPP, RosterMixin, RoomMixin, HipChatMixin): 'host': settings.PROXY_HOSTNAME, 'port': settings.PROXY_PORT, ...
Fix spelling of password in proxy_config dict
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ setup( packages=find_packages(), include_all_package_data=True, install_requires=[ - 'Django==1.10.5', + 'Django==1.11.22', 'dj-database-url==0.4.2', 'psycopg2==2.7...
Upgrade to django <I>
py
diff --git a/LiSE/LiSE/node.py b/LiSE/LiSE/node.py index <HASH>..<HASH> 100644 --- a/LiSE/LiSE/node.py +++ b/LiSE/LiSE/node.py @@ -461,10 +461,10 @@ class Node(allegedb.graph.Node, rule.RuleFollower): """Connect these nodes with a two-way portal and return it.""" return self.two_way_portal(other, **st...
No longer accept statdict arg to new_thing
py
diff --git a/pyrc/bots.py b/pyrc/bots.py index <HASH>..<HASH> 100644 --- a/pyrc/bots.py +++ b/pyrc/bots.py @@ -108,10 +108,10 @@ class Bot(object): name_used = None for name in names: - name_regex_str = r'^%s[,:]?\s+' % re.escape(name) + name_regex_str = r'^(%s)[,:]?\s+' % re.escape(name) n...
Take case-sensitivity into account when partitioning.
py
diff --git a/tools/interop_matrix/client_matrix.py b/tools/interop_matrix/client_matrix.py index <HASH>..<HASH> 100644 --- a/tools/interop_matrix/client_matrix.py +++ b/tools/interop_matrix/client_matrix.py @@ -107,7 +107,7 @@ LANG_RELEASE_MATRIX = { 'v1.8.2': None }, { - 'v1.9...
Update go release versions in client_matrix.py
py
diff --git a/python/vaex/utils.py b/python/vaex/utils.py index <HASH>..<HASH> 100644 --- a/python/vaex/utils.py +++ b/python/vaex/utils.py @@ -268,4 +268,4 @@ def ensure_string(string_or_bytes, encoding="utf-8"): if isinstance(string_or_bytes, six.string_types): return string_or_bytes else: - string_or_bytes.de...
bugfix: didn't return string
py
diff --git a/python/pyspark/sql/session.py b/python/pyspark/sql/session.py index <HASH>..<HASH> 100644 --- a/python/pyspark/sql/session.py +++ b/python/pyspark/sql/session.py @@ -581,6 +581,22 @@ class SparkSession(object): """ self._sc.stop() + @since(2.0) + def __enter__(self): + """ ...
[SPARK-<I>] [PYSPARK] Support with statement syntax for SparkSession ## What changes were proposed in this pull request? Support with statement syntax for SparkSession in pyspark ## How was this patch tested? Manually verify it. Although I can add unit test for it, it would affect other unit test because the SparkC...
py
diff --git a/test/test_macro_subsystem.py b/test/test_macro_subsystem.py index <HASH>..<HASH> 100644 --- a/test/test_macro_subsystem.py +++ b/test/test_macro_subsystem.py @@ -315,7 +315,7 @@ def test_blackbox_and_coarse_grain_external(): assert ms.state == (0, 1, 0) -@pytest.mark.slow +@pytest.mark.veryslow d...
Mark blackbox emergence as `veryslow`
py
diff --git a/seriously/SeriouslyCommands.py b/seriously/SeriouslyCommands.py index <HASH>..<HASH> 100755 --- a/seriously/SeriouslyCommands.py +++ b/seriously/SeriouslyCommands.py @@ -1224,7 +1224,7 @@ fn_table={ 0xDD:lambda x:x.push(b64decode(x.pop().encode('cp437')).decode('cp437')), 0xDE:lambda x:x....
Update SeriouslyCommands.py
py
diff --git a/mongoctl/tests/test_base.py b/mongoctl/tests/test_base.py index <HASH>..<HASH> 100644 --- a/mongoctl/tests/test_base.py +++ b/mongoctl/tests/test_base.py @@ -154,7 +154,7 @@ class MongoctlTestBase(unittest.TestCase): ########################################################################### de...
put --yes on all mongoctl test cases
py
diff --git a/medpy/features/intensity.py b/medpy/features/intensity.py index <HASH>..<HASH> 100644 --- a/medpy/features/intensity.py +++ b/medpy/features/intensity.py @@ -440,8 +440,6 @@ def local_histogram(image, bins=19, rang="image", cutoffp=(0.0, 100.0), size=Non The ``mode`` parameter determines how the a...
faulty description removed from local_histogram see #<I>
py
diff --git a/bin/process.py b/bin/process.py index <HASH>..<HASH> 100644 --- a/bin/process.py +++ b/bin/process.py @@ -200,7 +200,7 @@ def load_names(data_names, norm=True, log1p=False, verbose=True): def save_datasets(datasets, genes, data_names, verbose=True, truncate_neg=False): for i in ran...
Just save data sets as dense array for now
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,14 +4,14 @@ from setuptools import setup, find_packages, Command install_requires = [ - 'South>=0.7.6', - 'Django>=1.4', - 'eventlet>=0.9.15', + 'South==0.7.6', + 'Django==1.4.1', + 'eventlet==0.9.16'...
Require exact versions of the dependencies
py
diff --git a/lago/providers/libvirt/vm.py b/lago/providers/libvirt/vm.py index <HASH>..<HASH> 100644 --- a/lago/providers/libvirt/vm.py +++ b/lago/providers/libvirt/vm.py @@ -57,7 +57,7 @@ class LocalLibvirtVMProvider(vm_plugin.VMProviderPlugin): name=self.vm.virt_env.uuid + libvirt_url, libvi...
Get libvirt version correctly In f8be8f4d<I>c9f1abc4bdaf<I>cc9a5ae2c I misused 'getVersion' instead of 'getLibVersion'. The first returns the hypervisor version which was not the intention.
py
diff --git a/mongonaut/sites.py b/mongonaut/sites.py index <HASH>..<HASH> 100644 --- a/mongonaut/sites.py +++ b/mongonaut/sites.py @@ -49,7 +49,7 @@ class BaseMongoAdmin(object): def has_delete_permission(self, request): """ Can delete this object """ - return request.user.is_authenticated and re...
Fixing permissions again. Why don't I remember this silly call?
py
diff --git a/udata/core/spatial/models.py b/udata/core/spatial/models.py index <HASH>..<HASH> 100644 --- a/udata/core/spatial/models.py +++ b/udata/core/spatial/models.py @@ -116,7 +116,7 @@ class GeoZone(db.Document): HANDLED_LEVELS = current_app.config.get('HANDLED_LEVELS') try: return ...
Fix territory parent handling (#<I>)
py
diff --git a/pyt/cfg.py b/pyt/cfg.py index <HASH>..<HASH> 100644 --- a/pyt/cfg.py +++ b/pyt/cfg.py @@ -421,8 +421,11 @@ class CFG(ast.NodeVisitor): label.visit(node) this_function_name = list(self.functions.keys())[-1] - - return self.append_node(Node('ret_' + ...
Node changed to returnnode
py
diff --git a/gql/client.py b/gql/client.py index <HASH>..<HASH> 100644 --- a/gql/client.py +++ b/gql/client.py @@ -49,7 +49,7 @@ class Client(object): result = self._get_result(document, *args, **kwargs) if result.errors: - raise result.errors[0] + raise Exception(str(result.er...
Resolve TypeError when raising GraphQL errors `results.errors[0]` is a dict and raising it throws a TypeError: `TypeError: exceptions must be old-style classes or derived from BaseException, not dict` This fixes this error. Granted its not the best solution and we should probably subclass Exception to our own GQL...
py
diff --git a/pytplot/interactiveplot.py b/pytplot/interactiveplot.py index <HASH>..<HASH> 100644 --- a/pytplot/interactiveplot.py +++ b/pytplot/interactiveplot.py @@ -58,7 +58,7 @@ def interactiveplot(t_average=None): # Get the time closest to the x position the mouse is over. time_arr...
Missed a nanargmin
py
diff --git a/indra/bel/processor.py b/indra/bel/processor.py index <HASH>..<HASH> 100644 --- a/indra/bel/processor.py +++ b/indra/bel/processor.py @@ -47,7 +47,6 @@ def name_from_uri(uri): def gene_name_from_uri(uri): name = name_from_uri(uri).upper() - print uri, name return name def namespace_from_...
Fix extracting entities with / in name
py
diff --git a/validator/sawtooth_validator/networking/handlers.py b/validator/sawtooth_validator/networking/handlers.py index <HASH>..<HASH> 100644 --- a/validator/sawtooth_validator/networking/handlers.py +++ b/validator/sawtooth_validator/networking/handlers.py @@ -415,8 +415,8 @@ class AuthorizationChallengeSubmitHan...
Update logging level and spelling fixes Update the logging level of authorization violations from debug to warning. Corrects typo in logging message.
py
diff --git a/tests/test_response.py b/tests/test_response.py index <HASH>..<HASH> 100644 --- a/tests/test_response.py +++ b/tests/test_response.py @@ -5,6 +5,21 @@ from masonite.view import View from masonite.app import App from app.http.controllers.TestController import TestController as ControllerTest +from orato...
Inicial code to test response.
py
diff --git a/ciscosparkapi/__init__.py b/ciscosparkapi/__init__.py index <HASH>..<HASH> 100644 --- a/ciscosparkapi/__init__.py +++ b/ciscosparkapi/__init__.py @@ -34,6 +34,7 @@ del get_versions DEFAULT_BASE_URL = 'https://api.ciscospark.com/v1/' DEFAULT_TIMEOUT = 60 +ACCESS_TOKEN_ENVIRONMENT_VARIABLE = 'SPARK_ACCES...
Add ACCESS_TOKEN_ENVIRONEMENT_VARIABLE package-level constant Add a ACCESS_TOKEN_ENVIRONEMENT_VARIABLE package-level constant that specifies the name of the environment variable that is referenced by the package to retrieve a user’s Spark access token from the environment.
py
diff --git a/pipenv/patched/piptools/repositories/pypi.py b/pipenv/patched/piptools/repositories/pypi.py index <HASH>..<HASH> 100755 --- a/pipenv/patched/piptools/repositories/pypi.py +++ b/pipenv/patched/piptools/repositories/pypi.py @@ -225,7 +225,7 @@ class PyPIRepository(BaseRepository): result = reqse...
further patch @hynek's glorious bug
py
diff --git a/examples/python_example.py b/examples/python_example.py index <HASH>..<HASH> 100644 --- a/examples/python_example.py +++ b/examples/python_example.py @@ -25,7 +25,6 @@ class StatsdClient(object): >>> client = StatsdClient() >>> client.timing('example.timing', 500) >>> client.timi...
examples: python: added sets support
py
diff --git a/motor/__init__.py b/motor/__init__.py index <HASH>..<HASH> 100644 --- a/motor/__init__.py +++ b/motor/__init__.py @@ -18,11 +18,12 @@ import collections import functools import inspect import socket +import sys import time import warnings from tornado import ioloop, iostream, gen, stack_context, ne...
Use TracebackFuture in place of Future.
py
diff --git a/Lib/glyphs2ufo/glyphslib.py b/Lib/glyphs2ufo/glyphslib.py index <HASH>..<HASH> 100644 --- a/Lib/glyphs2ufo/glyphslib.py +++ b/Lib/glyphs2ufo/glyphslib.py @@ -18,9 +18,9 @@ from __future__ import print_function, division, absolute_import import glob -import json import os import sys +import tempfile ...
Use tempfile for designspace document This may be just a temporary solution to this; perhaps glyphs2ufo should just return the designspace document and leave interpolation to the caller.
py
diff --git a/apiblueprint_view/parser.py b/apiblueprint_view/parser.py index <HASH>..<HASH> 100644 --- a/apiblueprint_view/parser.py +++ b/apiblueprint_view/parser.py @@ -69,8 +69,8 @@ class ApibpParser: raise SuspiciousFileOperation("extension not in whitelist") # recursively replace an...
fix ResourceWarning: unclosed file
py
diff --git a/salt/fileclient.py b/salt/fileclient.py index <HASH>..<HASH> 100644 --- a/salt/fileclient.py +++ b/salt/fileclient.py @@ -1097,12 +1097,17 @@ class RemoteClient(Client): fn_.write(data) except (TypeError, KeyError) as e: transport_tries += 1 - l...
Log retryable transport errors as warnings
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,7 @@ -from setuptools import setup +from distutils.core import setup + +with open('README.md') as file: + long_description = file.read() setup( name='boatd_client', @@ -6,13 +9,12 @@ setup( author='...
Update setup.py for pypi
py
diff --git a/aiogrpc/channel.py b/aiogrpc/channel.py index <HASH>..<HASH> 100644 --- a/aiogrpc/channel.py +++ b/aiogrpc/channel.py @@ -327,6 +327,12 @@ class Channel(_grpc.Channel): self._standalone_pool = standalone_pool_for_streaming self._subscribe_map = {} + async def __aenter__(self): + ...
async support for "Channel" object - aenter and aexit function
py
diff --git a/mongoctl/commands/server/start.py b/mongoctl/commands/server/start.py index <HASH>..<HASH> 100644 --- a/mongoctl/commands/server/start.py +++ b/mongoctl/commands/server/start.py @@ -229,12 +229,11 @@ def _post_server_start(server, server_pid, **kwargs): ####################################################...
Move an unqualified sleep() closer to where it's apparently needed. According to where it was originally run (7e7fbab<I>afed<I>c<I>c<I>caf<I>a2b) this sleep is only necessary for servers that have replicasets, so it should probably live inside the replicaset branch of the code. Standalone servers, like those used for...
py
diff --git a/warehouse/datadog/pyramid_datadog.py b/warehouse/datadog/pyramid_datadog.py index <HASH>..<HASH> 100644 --- a/warehouse/datadog/pyramid_datadog.py +++ b/warehouse/datadog/pyramid_datadog.py @@ -86,18 +86,20 @@ def on_before_render(before_render_event): request = before_render_event['request'] t...
Fix datadog integration when view code isn't run (#<I>)
py
diff --git a/distutilazy/pyinstaller.py b/distutilazy/pyinstaller.py index <HASH>..<HASH> 100644 --- a/distutilazy/pyinstaller.py +++ b/distutilazy/pyinstaller.py @@ -30,7 +30,7 @@ class bdist_pyinstaller(Command): user_options = [ ("target=", 't', "Taget Python app to bundle"), - ("pyinstaller="...
Fixed a bug in setting pyinstaller path The attribute name did not contain 'path' so it was not being set.
py
diff --git a/aetros/MonitorThread.py b/aetros/MonitorThread.py index <HASH>..<HASH> 100755 --- a/aetros/MonitorThread.py +++ b/aetros/MonitorThread.py @@ -86,12 +86,14 @@ class MonitoringThread(Thread): previous_system = data['cpu_stats']['system_cpu_usage'] if cpu_delta > 0 ...
fixed docker stats cpu calculation
py
diff --git a/bandit/backends/base.py b/bandit/backends/base.py index <HASH>..<HASH> 100644 --- a/bandit/backends/base.py +++ b/bandit/backends/base.py @@ -27,8 +27,10 @@ class HijackBackendMixin(object): admins = getattr(settings, 'ADMINS', ()) server_email = getattr(settings, 'SERVER_EMAIL', 'root@lo...
Allow BANDIT_EMAIL to be a list or email addresses.
py
diff --git a/spyder/utils/tests/test_syntaxhighlighters.py b/spyder/utils/tests/test_syntaxhighlighters.py index <HASH>..<HASH> 100644 --- a/spyder/utils/tests/test_syntaxhighlighters.py +++ b/spyder/utils/tests/test_syntaxhighlighters.py @@ -47,6 +47,26 @@ def test_HtmlSH_unclosed_commend(): compare_formats(doc.f...
added test for some string prefixes
py
diff --git a/tests/base.py b/tests/base.py index <HASH>..<HASH> 100644 --- a/tests/base.py +++ b/tests/base.py @@ -106,6 +106,7 @@ class BaseParserTestCase(GenericUtilities): self.assertEqual( ''.join(stream.read().split()), self.get_standardized_text(), + "...
improved error messages for standardized text failures
py
diff --git a/script/bootstrap.py b/script/bootstrap.py index <HASH>..<HASH> 100644 --- a/script/bootstrap.py +++ b/script/bootstrap.py @@ -364,6 +364,10 @@ def check_xcode(build_tool): def check_emscripten(build_tool): + def version_from_emscripten_output (output): + first_line = output.splitlines()[0] +...
Detect Emscripten version by regular expression, becuase version number is not always the 4th splitted value in the output.
py