diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/scripts/import.py b/scripts/import.py index <HASH>..<HASH> 100755 --- a/scripts/import.py +++ b/scripts/import.py @@ -5179,7 +5179,10 @@ for task in tasks: lines = html2.splitlines() for line in lines: if 'javascript:showx' in line: - ...
better handling crts data munging.
py
diff --git a/time_execution/backends/elasticsearch.py b/time_execution/backends/elasticsearch.py index <HASH>..<HASH> 100644 --- a/time_execution/backends/elasticsearch.py +++ b/time_execution/backends/elasticsearch.py @@ -36,7 +36,7 @@ class ElasticsearchBackend(BaseMetricsBackend): return self.index_pattern....
CHANGED create ElasticSearch index following the index name pattern
py
diff --git a/pythonrails/request.py b/pythonrails/request.py index <HASH>..<HASH> 100644 --- a/pythonrails/request.py +++ b/pythonrails/request.py @@ -39,3 +39,10 @@ class Request(WebobRequest): """ params = self.get_url_params() return params[index] if index < len(params) else default + + ...
Added 'is_ajax' property to check is request is ajax
py
diff --git a/rest_registration/__init__.py b/rest_registration/__init__.py index <HASH>..<HASH> 100644 --- a/rest_registration/__init__.py +++ b/rest_registration/__init__.py @@ -1,2 +1,2 @@ -__version__ = "0.3.10" +__version__ = "0.3.11" default_app_config = 'rest_registration.apps.RestRegistrationConfig'
Bumped version to <I> [skip ci]
py
diff --git a/tensorflow_datasets/core/tfrecords_reader_test.py b/tensorflow_datasets/core/tfrecords_reader_test.py index <HASH>..<HASH> 100644 --- a/tensorflow_datasets/core/tfrecords_reader_test.py +++ b/tensorflow_datasets/core/tfrecords_reader_test.py @@ -578,8 +578,7 @@ class ReaderTest(testing.TestCase): ...
Allow test to pass when there are unrelated logging.warning() calls PiperOrigin-RevId: <I>
py
diff --git a/telepot/aio/loop.py b/telepot/aio/loop.py index <HASH>..<HASH> 100644 --- a/telepot/aio/loop.py +++ b/telepot/aio/loop.py @@ -34,7 +34,7 @@ class GetUpdatesLoop(object): offset = update['update_id'] + 1 except CancelledError: - raise + b...
Add an option to cancel MessageLoop. Currently there is no good way to stop MessageLoop once it is started. This commit adds 'cancel' method to MessageLoop that stops it.
py
diff --git a/hamster/overview.py b/hamster/overview.py index <HASH>..<HASH> 100644 --- a/hamster/overview.py +++ b/hamster/overview.py @@ -79,9 +79,6 @@ class Overview(object): self.range_combo.append_text(_("Week")) self.range_combo.append_text(_("Month")) self.range_combo.append_text(_("Dat...
"All" date range is not functional, so removing it.
py
diff --git a/smmap/__init__.py b/smmap/__init__.py index <HASH>..<HASH> 100644 --- a/smmap/__init__.py +++ b/smmap/__init__.py @@ -3,7 +3,7 @@ __author__ = "Sebastian Thiel" __contact__ = "byronimo@gmail.com" __homepage__ = "https://github.com/Byron/smmap" -version_info = (0, 9, 0) +version_info = (2, 0, 0) __versi...
chore(version): set version to <I> Just to match the name a bit better. [skip ci]
py
diff --git a/pandas/sparse/tests/test_sparse.py b/pandas/sparse/tests/test_sparse.py index <HASH>..<HASH> 100644 --- a/pandas/sparse/tests/test_sparse.py +++ b/pandas/sparse/tests/test_sparse.py @@ -446,7 +446,7 @@ class TestSparseSeries(tm.TestCase, [0, len(self.bseries) + 1]) # C...
COMPAT: numpy <I> doesn't like float indexers in np.ones
py
diff --git a/discord/voice_client.py b/discord/voice_client.py index <HASH>..<HASH> 100644 --- a/discord/voice_client.py +++ b/discord/voice_client.py @@ -96,7 +96,7 @@ class VoiceProtocol: The raw `voice state payload`__. .. _voice_state_update_payload: https://discord.com/developers/docs/r...
Properly handle disconnects in voice when force disconnected
py
diff --git a/raven/handlers/logging.py b/raven/handlers/logging.py index <HASH>..<HASH> 100644 --- a/raven/handlers/logging.py +++ b/raven/handlers/logging.py @@ -26,7 +26,7 @@ RESERVED = frozenset(( )) -def extract_extra(record): +def extract_extra(record, reserved=RESERVED): data = {} extra = getattr...
Add the ability to pass in a different RESERVED.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -14,6 +14,10 @@ class PyTest(TestCommand): def run_tests(self): #import here, cause outside the eggs aren't loaded import pytest + + from tests.tools import check_samples + check_samples + ...
Check tests samples in setup.py test
py
diff --git a/prometheus_client/core.py b/prometheus_client/core.py index <HASH>..<HASH> 100644 --- a/prometheus_client/core.py +++ b/prometheus_client/core.py @@ -509,7 +509,7 @@ class _MmapedDict(object): if os.fstat(self._f.fileno()).st_size == 0: self._f.truncate(_INITIAL_MMAP_SIZE) se...
Also set the mmap mode to match the read_mode flag.
py
diff --git a/grimoire_elk/enriched/sortinghat_gelk.py b/grimoire_elk/enriched/sortinghat_gelk.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/enriched/sortinghat_gelk.py +++ b/grimoire_elk/enriched/sortinghat_gelk.py @@ -120,6 +120,23 @@ class SortingHat(object): logger.info("Total identities added to SH: %i...
[sortinghat_gelk] Add method `remove_identity` This code add the method to remove identity from SortingHat.
py
diff --git a/test/conftest.py b/test/conftest.py index <HASH>..<HASH> 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -13,9 +13,15 @@ def fixtures_directory(request): @pytest.fixture(autouse=True) def temp_directory(request): temp_dir = join(dirname(realpath(__file__)), 'temp') - mkdir(temp_dir) + ...
Fixed the windows permissions problem on pytest using a kludge
py
diff --git a/ryu/ofproto/nx_match.py b/ryu/ofproto/nx_match.py index <HASH>..<HASH> 100644 --- a/ryu/ofproto/nx_match.py +++ b/ryu/ofproto/nx_match.py @@ -694,6 +694,16 @@ class MFTPSRC(MFField): def put(self, buf, offset, rule): return self.putm(buf, offset, rule.flow.tp_src, rule.wc.tp_src_mask) +@_re...
of<I>: Register TCP_DST and UDP_DST headers in NXM
py
diff --git a/src/backends/ninja.py b/src/backends/ninja.py index <HASH>..<HASH> 100644 --- a/src/backends/ninja.py +++ b/src/backends/ninja.py @@ -165,6 +165,8 @@ def all_rule(default_targets, writer, env): ) def install_rule(install_targets, writer, env): + if not install_targets: + return prefi...
Don't emit an empty "install" rule in ninja
py
diff --git a/trezorlib/tests/device_tests/test_msg_nem_signtx_multisig.py b/trezorlib/tests/device_tests/test_msg_nem_signtx_multisig.py index <HASH>..<HASH> 100644 --- a/trezorlib/tests/device_tests/test_msg_nem_signtx_multisig.py +++ b/trezorlib/tests/device_tests/test_msg_nem_signtx_multisig.py @@ -157,5 +157,3 @@ c...
flake8: delete trailing lines
py
diff --git a/cheroot/test/test_ssl.py b/cheroot/test/test_ssl.py index <HASH>..<HASH> 100644 --- a/cheroot/test/test_ssl.py +++ b/cheroot/test/test_ssl.py @@ -17,6 +17,7 @@ import trustme from .._compat import bton, ntob, ntou from ..server import Gateway, HTTPServer, get_ssl_adapter_class +from ..ssl.builtin impor...
🐛 Fix test_https_over_http_error expectations
py
diff --git a/pages/utils.py b/pages/utils.py index <HASH>..<HASH> 100644 --- a/pages/utils.py +++ b/pages/utils.py @@ -39,7 +39,7 @@ def placeholders_recursif(nodelist, plist): """ # to avoid circular import # must be imported like this for isinstance - from django.templatetags.pages_tags import Place...
correct the import of the PlaceHolderClass to get the object from the right place. Otherwise it will not compare the currently processed node correctly with the isinstance function git-svn-id: <URL>
py
diff --git a/tests/pbxcli/TestPBXCLI.py b/tests/pbxcli/TestPBXCLI.py index <HASH>..<HASH> 100644 --- a/tests/pbxcli/TestPBXCLI.py +++ b/tests/pbxcli/TestPBXCLI.py @@ -37,7 +37,6 @@ class PBXCLITest(unittest.TestCase): self.assertIsNone(self.backup_file) def testBackupWithFlag(self): - project = X...
chore: small simplification on the tests
py
diff --git a/pymc3/diagnostics.py b/pymc3/diagnostics.py index <HASH>..<HASH> 100644 --- a/pymc3/diagnostics.py +++ b/pymc3/diagnostics.py @@ -50,7 +50,7 @@ def geweke(x, first=.1, last=.5, intervals=20): Geweke (1992) """ - if np.rank(x) > 1: + if np.ndim(x) > 1: return [geweke(y, first, las...
Replace numpy.rank with numpy.ndim np.rank was deprecated in NumPy <I>.
py
diff --git a/ontospy/core/sparql_helper.py b/ontospy/core/sparql_helper.py index <HASH>..<HASH> 100755 --- a/ontospy/core/sparql_helper.py +++ b/ontospy/core/sparql_helper.py @@ -180,18 +180,17 @@ class SparqlHelper(object): qres = self.rdflib_graph.query("""SELECT ?nProperty WHERE { - ...
Match new query's spelling to getSKOSDirectSupers This patch should have no functional impact, except possibly some speedup from a braces encapsulation.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -18,6 +18,6 @@ setup(name='bread', "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules"], license='MIT', - packages=['bread'], + packages=...
Add bread.vendor to package in setup.py.
py
diff --git a/ayrton/tests/test_remote.py b/ayrton/tests/test_remote.py index <HASH>..<HASH> 100644 --- a/ayrton/tests/test_remote.py +++ b/ayrton/tests/test_remote.py @@ -89,7 +89,7 @@ class DebugRemoteTests (RemoteTests): server= socket (AF_INET, SOCK_STREAM) server.setsockopt(SOL_S...
[*] timeout down to 1s, so we can fail <I>% faster!
py
diff --git a/tests/test_backend.py b/tests/test_backend.py index <HASH>..<HASH> 100644 --- a/tests/test_backend.py +++ b/tests/test_backend.py @@ -91,7 +91,9 @@ def test_invalidate_cache(get_cluster_info): backend.get('key1', 'val') except Exception: pass - backend._local._client = None + #...
fix tests for django<I> support
py
diff --git a/tests/test_location_by_point_query_url.py b/tests/test_location_by_point_query_url.py index <HASH>..<HASH> 100644 --- a/tests/test_location_by_point_query_url.py +++ b/tests/test_location_by_point_query_url.py @@ -79,18 +79,3 @@ def test_location_by_point_url_http_protocol(data, expected): def test_locati...
Divided data in between http and https protocol
py
diff --git a/devtools/conda-recipe/run_test.py b/devtools/conda-recipe/run_test.py index <HASH>..<HASH> 100644 --- a/devtools/conda-recipe/run_test.py +++ b/devtools/conda-recipe/run_test.py @@ -21,7 +21,8 @@ pytest_args = ("--pyargs {test_pkg} " "--doctest-modules " "{njobs_args} " ...
[ci] show <I> slowest tests [ci skip]
py
diff --git a/benchexec/model.py b/benchexec/model.py index <HASH>..<HASH> 100644 --- a/benchexec/model.py +++ b/benchexec/model.py @@ -622,7 +622,7 @@ class Run(object): self.propertyfile = None if self.propertyfile: - self.required_files.update(self.propertyfile) + sel...
Fix adding property file to run specific required files.
py
diff --git a/build/compiler.py b/build/compiler.py index <HASH>..<HASH> 100644 --- a/build/compiler.py +++ b/build/compiler.py @@ -401,5 +401,6 @@ class GenerateLocalizations(object): not self._locales_changed()): return True - generateLocalizations.main(['--locales'] + self.locales) + locales =...
Fix a build script corner case In some cases, build/check.py is run before there are no generated localizations. Although this doesn't care what locales are built, something needs to be built anyway. So we need a default value to build with in this case. Change-Id: Ie7af<I>d4ba<I>ed<I>d4d<I>f7d<I>
py
diff --git a/pyteaser.py b/pyteaser.py index <HASH>..<HASH> 100644 --- a/pyteaser.py +++ b/pyteaser.py @@ -87,6 +87,9 @@ def Summarize(title, text): keys = keywords(text) titleWords = split_words(title) + if len(sentences) <= 5: + return sentences + #score setences, and use the top 5 sentence...
handle short length news retain the original sentence sequence if sentences no more than 5 sentence ex: (<URL>)
py
diff --git a/tests/executors/test_http_executor.py b/tests/executors/test_http_executor.py index <HASH>..<HASH> 100644 --- a/tests/executors/test_http_executor.py +++ b/tests/executors/test_http_executor.py @@ -1,5 +1,6 @@ """HTTP Executor tests.""" import os +import sys import pytest @@ -10,9 +11,9 @@ PORT = "8...
fixes http_server start for python3 in tests - add timeout, to make sure test fails if something will be wrong in future
py
diff --git a/bigchaindb/backend/rethinkdb/connection.py b/bigchaindb/backend/rethinkdb/connection.py index <HASH>..<HASH> 100644 --- a/bigchaindb/backend/rethinkdb/connection.py +++ b/bigchaindb/backend/rethinkdb/connection.py @@ -65,14 +65,14 @@ class RethinkDBConnection(Connection): :attr:`~.RethinkD...
Add db connection info to logging
py
diff --git a/troposphere/inspector.py b/troposphere/inspector.py index <HASH>..<HASH> 100644 --- a/troposphere/inspector.py +++ b/troposphere/inspector.py @@ -12,7 +12,7 @@ class AssessmentTarget(AWSObject): props = { 'AssessmentTargetName': (basestring, False), - 'ResourceGroupArn': (basestring,...
ResourceGroupArn is no longer mandatory for AWS::Inspector::AssessmentTarget, per <I> Jan <I> update (#<I>)
py
diff --git a/tests/test_schema_builder.py b/tests/test_schema_builder.py index <HASH>..<HASH> 100644 --- a/tests/test_schema_builder.py +++ b/tests/test_schema_builder.py @@ -94,6 +94,7 @@ def test_string_var(config_name): assert schema["properties"]["test"]["type"] == "string" +@settings(deadline=None) @...
Removing hypothesis deadline for test_integer_var
py
diff --git a/pyghmi/ipmi/oem/lenovo/config.py b/pyghmi/ipmi/oem/lenovo/config.py index <HASH>..<HASH> 100644 --- a/pyghmi/ipmi/oem/lenovo/config.py +++ b/pyghmi/ipmi/oem/lenovo/config.py @@ -298,6 +298,13 @@ class LenovoFirmwareConfig(object): name = setting.find("mriName").text ...
Hide instanced and password settings These are currently not supported. Change-Id: Ie<I>e<I>ebe<I>d<I>aedbd<I>c1dedca6f<I>ae5d<I>
py
diff --git a/grimoire_elk/raw/git.py b/grimoire_elk/raw/git.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/raw/git.py +++ b/grimoire_elk/raw/git.py @@ -22,6 +22,7 @@ from .elastic import ElasticOcean from ..elastic_mapping import Mapping as BaseMapping from ..identities.git import GitIdentities +from ..enriched.u...
[raw-git] Remove credentials from origin This code redefines the method _fix_item for the git raw data in order to remove credentials that may appear in the origin. This change is needed to prevent storing the credentials to access git private repos in the raw index.
py
diff --git a/spinoff/contrib/filetransfer/util.py b/spinoff/contrib/filetransfer/util.py index <HASH>..<HASH> 100644 --- a/spinoff/contrib/filetransfer/util.py +++ b/spinoff/contrib/filetransfer/util.py @@ -23,5 +23,4 @@ def mkdir_p(path): def reasonable_get_mtime(fname): - mtime = os.stat(fname).st_mtime - ...
Fixed filetransfer: rounded mtime to one second precision
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -6,6 +6,11 @@ if sys.version_info < (3, 2): print("ApiDoc requires Python 3.2 or later") raise SystemExit(1) +if sys.version_info == (3, 2): + requirements = ['Jinja2 == 2.6', 'PyYAML'] +else: + requirements ...
Fix Jinja version for python = <I>
py
diff --git a/example/settings.py b/example/settings.py index <HASH>..<HASH> 100644 --- a/example/settings.py +++ b/example/settings.py @@ -56,8 +56,11 @@ LOGGING = { } # START keyboard_shortcuts settings # -HOTKEYS = list() -HOTKEYS.append({'keys': 'g + h', # go to home - 'link': '/'}) +HOTKEYS = [ ...
updated the HOTKEYS setting in example project in order to have also js action
py
diff --git a/psyplot/data.py b/psyplot/data.py index <HASH>..<HASH> 100755 --- a/psyplot/data.py +++ b/psyplot/data.py @@ -3111,9 +3111,8 @@ class InteractiveArray(InteractiveBase): arr.coords) ycoord = self.decoder.get_y(next(six.itervalues(self.base_variables)), ...
minor fix for fldmean
py
diff --git a/parler/fields.py b/parler/fields.py index <HASH>..<HASH> 100644 --- a/parler/fields.py +++ b/parler/fields.py @@ -93,6 +93,10 @@ class TranslatedFieldDescriptor(object): def __repr__(self): return "<{0} for {1}.{2}>".format(self.__class__.__name__, self.field.model.__name__, self.field.name) ...
Add short_description to TranslatedFieldDescriptor for correct translated field name translation
py
diff --git a/salt/renderers/__init__.py b/salt/renderers/__init__.py index <HASH>..<HASH> 100644 --- a/salt/renderers/__init__.py +++ b/salt/renderers/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +''' +Renderers Directory +'''
add encoding and docstring for renderers
py
diff --git a/galpy/util/__init__.py b/galpy/util/__init__.py index <HASH>..<HASH> 100644 --- a/galpy/util/__init__.py +++ b/galpy/util/__init__.py @@ -1,14 +1,12 @@ import os import shutil import warnings -import copy import tempfile import pickle import numpy import scipy.linalg as linalg class galpyWarning(Wa...
change the way showwarning is overriden; fixes #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -20,6 +20,12 @@ CLASSIFIERS = [ 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Langua...
[IMP] Add Python versions to setup.py
py
diff --git a/pyagentx/agent.py b/pyagentx/agent.py index <HASH>..<HASH> 100644 --- a/pyagentx/agent.py +++ b/pyagentx/agent.py @@ -136,6 +136,8 @@ class Agent(object): for i in self.data.keys(): if i.startswith(oid): del self.data[i] + # recalculate reverse ...
function clear needs to recalculate data index as well
py
diff --git a/scapy/scapypipes.py b/scapy/scapypipes.py index <HASH>..<HASH> 100644 --- a/scapy/scapypipes.py +++ b/scapy/scapypipes.py @@ -173,7 +173,7 @@ class TCPConnectPipe(Source): class TCPListenPipe(TCPConnectPipe): """TCP listen on [addr:]port and use first connection as source and sink ; send peer addre...
Had TCPListenPipe triggers when a connection happens
py
diff --git a/machina/__init__.py b/machina/__init__.py index <HASH>..<HASH> 100644 --- a/machina/__init__.py +++ b/machina/__init__.py @@ -3,7 +3,7 @@ from __future__ import unicode_literals import os -__version__ = '0.5.2' +__version__ = '0.5.3.dev' MACHINA_VANILLA_APPS = [
Bumped version to <I>.dev
py
diff --git a/raven/scripts/runner.py b/raven/scripts/runner.py index <HASH>..<HASH> 100644 --- a/raven/scripts/runner.py +++ b/raven/scripts/runner.py @@ -8,6 +8,7 @@ raven.scripts.runner from __future__ import absolute_import +import logging import os import sys @@ -15,6 +16,10 @@ from raven import Client ...
Configure logging for the test command
py
diff --git a/pycbc/workflow/injection.py b/pycbc/workflow/injection.py index <HASH>..<HASH> 100644 --- a/pycbc/workflow/injection.py +++ b/pycbc/workflow/injection.py @@ -63,6 +63,18 @@ def compute_inj_optimal_snr(workflow, inj_file, precalc_psd_files, out_dir, workflow += node return node.output_files[0] +...
adding inj_cut to the workflow/injection
py
diff --git a/mpv.py b/mpv.py index <HASH>..<HASH> 100644 --- a/mpv.py +++ b/mpv.py @@ -244,6 +244,11 @@ def _event_generator(handle): raise StopIteration() yield event +def load_lua(): + """ Use this function if you intend to use mpv's built-in lua interpreter. This is e.g. needed for playback o...
Added optional loading of liblua
py
diff --git a/paramiko/__init__.py b/paramiko/__init__.py index <HASH>..<HASH> 100644 --- a/paramiko/__init__.py +++ b/paramiko/__init__.py @@ -86,13 +86,6 @@ from hostkeys import HostKeys from config import SSHConfig from proxy import ProxyCommand -# fix module names for epydoc -for c in locals().values(): - if ...
This handily explains why everything was really confusing in autodoc
py
diff --git a/salt/states/mount.py b/salt/states/mount.py index <HASH>..<HASH> 100644 --- a/salt/states/mount.py +++ b/salt/states/mount.py @@ -78,7 +78,8 @@ def mounted(name, opts = ['defaults'] # remove possible trailing slash - name = name.rstrip("/") + if not name == '/': + name = name.r...
BUGFIX: allow "/" as name
py
diff --git a/aamp/yaml_util.py b/aamp/yaml_util.py index <HASH>..<HASH> 100644 --- a/aamp/yaml_util.py +++ b/aamp/yaml_util.py @@ -1,6 +1,7 @@ from aamp.parameters import * from aamp.botw_hashed_names import hash_to_name_map from aamp.botw_numbered_names import numbered_name_list +import functools import yaml impo...
yaml_util: Memoize numbered names guessing results Sometimes the same keys are used in several objects. This allows us to skip many redundant checks.
py
diff --git a/pyamg/strength.py b/pyamg/strength.py index <HASH>..<HASH> 100644 --- a/pyamg/strength.py +++ b/pyamg/strength.py @@ -909,7 +909,7 @@ def algebraic_distance(A, alpha=0.5, R=5, k=20, theta=0.1, p=2): C.eliminate_zeros() # Strength represents "distance", so take the magnitude - S.data = np.ab...
Fixed typo in algebraic_distances
py
diff --git a/djangocms_blog/__init__.py b/djangocms_blog/__init__.py index <HASH>..<HASH> 100644 --- a/djangocms_blog/__init__.py +++ b/djangocms_blog/__init__.py @@ -3,6 +3,6 @@ from __future__ import absolute_import, print_function, unicode_literals __author__ = 'Iacopo Spalletti' __email__ = 'i.spalletti@nephila...
Bump develop version [ci skip]
py
diff --git a/hbmqtt/broker.py b/hbmqtt/broker.py index <HASH>..<HASH> 100644 --- a/hbmqtt/broker.py +++ b/hbmqtt/broker.py @@ -79,4 +79,5 @@ class Broker: @asyncio.coroutine def client_connected(self, reader, writer): - pass + (remote_address, remote_port) = writer.get_extra_info('peername') +...
HBMQTT-<I> #comment Add remote address/port debug info on client connection
py
diff --git a/dataset/freeze/app.py b/dataset/freeze/app.py index <HASH>..<HASH> 100644 --- a/dataset/freeze/app.py +++ b/dataset/freeze/app.py @@ -3,6 +3,7 @@ import argparse from sqlalchemy.exc import ProgrammingError from dataset.util import FreezeException +from dataset.persistence.table import Table from datas...
Added convenience check to ``freeze()``. If a whole table is passed as a result set, rather than a result set, calls ``result.all()`` to automagically "do the right thing."
py
diff --git a/salt/minion.py b/salt/minion.py index <HASH>..<HASH> 100644 --- a/salt/minion.py +++ b/salt/minion.py @@ -1072,7 +1072,7 @@ class MinionManager(MinionBase): Helper function to return the correct type of object """ load_grains = False - if opts.get("grains", {}): + i...
one less object created on startup of minion
py
diff --git a/tornado/ioloop.py b/tornado/ioloop.py index <HASH>..<HASH> 100644 --- a/tornado/ioloop.py +++ b/tornado/ioloop.py @@ -31,6 +31,7 @@ from __future__ import absolute_import, division, with_statement import datetime import errno import heapq +import logging import os import select import thread @@ -254,...
Compensate for move to non-root loggers by calling basicConfig in IOLoop.start. The root logging methods call basicConfig automatically, but non-root loggers do not.
py
diff --git a/openquake/calculators/risk/scenario_damage/core.py b/openquake/calculators/risk/scenario_damage/core.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/risk/scenario_damage/core.py +++ b/openquake/calculators/risk/scenario_damage/core.py @@ -28,7 +28,7 @@ from openquake import logs from openquake....
Deleted useless queries Former-commit-id: <I>efb<I>a7b<I>a<I>ac<I>a3dac<I>
py
diff --git a/alpaca_trade_api/stream2.py b/alpaca_trade_api/stream2.py index <HASH>..<HASH> 100644 --- a/alpaca_trade_api/stream2.py +++ b/alpaca_trade_api/stream2.py @@ -68,8 +68,8 @@ class StreamConn(object): if 'staging' in self._base_url: key_id += '-staging' self.polygon = polygon.St...
Fixed both StreamConn._handlers and StreamConn.polygon._handlers referencing the same object and thus causing KeyErrors on StreamConn.deregister()
py
diff --git a/gnupg/parsers.py b/gnupg/parsers.py index <HASH>..<HASH> 100644 --- a/gnupg/parsers.py +++ b/gnupg/parsers.py @@ -754,7 +754,7 @@ class Sign(object): __bool__ = __nonzero__ def __str__(self): - return self.data.decode(self.gpg.encoding, self.gpg.decode_errors) + return self.data.d...
Add a missing underscore to a call to gpg.decode_errors in Sign().
py
diff --git a/py/selenium/webdriver/common/action_chains.py b/py/selenium/webdriver/common/action_chains.py index <HASH>..<HASH> 100644 --- a/py/selenium/webdriver/common/action_chains.py +++ b/py/selenium/webdriver/common/action_chains.py @@ -316,8 +316,8 @@ class ActionChains(object): def pause(self, seconds): ...
No need to multiply pause by <I>
py
diff --git a/knights/parse.py b/knights/parse.py index <HASH>..<HASH> 100644 --- a/knights/parse.py +++ b/knights/parse.py @@ -166,3 +166,29 @@ class Parser: ''' code = ast.parse('x(%s)' % bits, mode='eval') return code.body.args, code.body.keywords + + def resolve_args(self, context, args...
Add resolve_args helper method
py
diff --git a/tpot/tpot.py b/tpot/tpot.py index <HASH>..<HASH> 100644 --- a/tpot/tpot.py +++ b/tpot/tpot.py @@ -1293,7 +1293,7 @@ else: return input_df.copy() # The feature constructor must be fit on only the training data - poly = PolynomialFeatures(degree=2) + poly = PolynomialFea...
PolynomialFeatures: remove bias term The bias feature causes issues for other operators.
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 @@ -42,8 +42,8 @@ p = figure(tools="save", background_fill_color="#EFE8E2", title="", x_range=cats # if no outliers, shrink leng...
removed trailing space from list comprehension in calculation of upper.score and lower.score.
py
diff --git a/pydoop/app/script.py b/pydoop/app/script.py index <HASH>..<HASH> 100644 --- a/pydoop/app/script.py +++ b/pydoop/app/script.py @@ -304,9 +304,7 @@ class PydoopScript(object): def run(args): script = PydoopScript() script.set_args(args) - output = script.run() - if output: - print output + scrip...
Don't try to print pydoop script output (there is none)
py
diff --git a/detect_secrets/plugins/slack.py b/detect_secrets/plugins/slack.py index <HASH>..<HASH> 100644 --- a/detect_secrets/plugins/slack.py +++ b/detect_secrets/plugins/slack.py @@ -27,13 +27,26 @@ class SlackDetector(RegexBasedDetector): ), ) - def verify(self, token, **kwargs): # pragma: no...
Added Verifiability Slack
py
diff --git a/imbox/parser.py b/imbox/parser.py index <HASH>..<HASH> 100644 --- a/imbox/parser.py +++ b/imbox/parser.py @@ -131,9 +131,9 @@ def parse_email(raw_email): if attachment: attachments.append(attachment) - elif maintype == 'text': - payl...
Bug fix. Set body when maintype is text
py
diff --git a/kaybee/plugins/articles/base_toctree.py b/kaybee/plugins/articles/base_toctree.py index <HASH>..<HASH> 100644 --- a/kaybee/plugins/articles/base_toctree.py +++ b/kaybee/plugins/articles/base_toctree.py @@ -29,7 +29,7 @@ class BaseToctree: for flag, pagename in entries: title = titles[...
@WIP Not all resources have is_published.
py
diff --git a/nested_inline/admin.py b/nested_inline/admin.py index <HASH>..<HASH> 100644 --- a/nested_inline/admin.py +++ b/nested_inline/admin.py @@ -234,6 +234,7 @@ class NestedModelAdmin(admin.ModelAdmin): 'errors': helpers.AdminErrorList(form, formsets), 'app_label': opts.app_label, ...
Added admin site context to change and add view contexts so customised site title and header can be used.
py
diff --git a/ariane_clip3/rabbitmq/driver.py b/ariane_clip3/rabbitmq/driver.py index <HASH>..<HASH> 100644 --- a/ariane_clip3/rabbitmq/driver.py +++ b/ariane_clip3/rabbitmq/driver.py @@ -156,7 +156,8 @@ class Requester(pykka.ThreadingActor): content = self.response['body'].decode("UTF-8") ...
[ACC-<I>] protection around error mgt
py
diff --git a/paramiko/__init__.py b/paramiko/__init__.py index <HASH>..<HASH> 100644 --- a/paramiko/__init__.py +++ b/paramiko/__init__.py @@ -84,6 +84,7 @@ __all__ = [ 'PKey', 'RSAKey', 'DSSKey', + 'Ed25519Key', 'Message', 'SSHException', 'AuthenticationException',
Added Ed<I>Key to __all__
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -579,6 +579,9 @@ setup( "Topic :: Software Development :: Libraries :: Application Frameworks", "Intended Audience :: Developers", ], + data_files=[ + ('config', ['README.md']), + ], ) # vim: set sw=...
added data_files in setup.py, so README.md is added to deb when running setup.py sdist
py
diff --git a/tests/test_archivesspace_client.py b/tests/test_archivesspace_client.py index <HASH>..<HASH> 100644 --- a/tests/test_archivesspace_client.py +++ b/tests/test_archivesspace_client.py @@ -405,11 +405,15 @@ def test_contentless_notes(): def test_escaping_solr_queries(): - client = ArchivesSpaceClient(...
ArchivesSpace tests: don't instantiate client when testing escaping
py
diff --git a/audioread/gstdec.py b/audioread/gstdec.py index <HASH>..<HASH> 100644 --- a/audioread/gstdec.py +++ b/audioread/gstdec.py @@ -366,8 +366,8 @@ if __name__ == '__main__': for path in sys.argv[1:]: path = os.path.abspath(os.path.expanduser(path)) with GstAudioFile(path) as f: - ...
Use the print() function instead of the print keyword Python3 doesn't have the `print foo` statement.
py
diff --git a/matplotlib2tikz.py b/matplotlib2tikz.py index <HASH>..<HASH> 100644 --- a/matplotlib2tikz.py +++ b/matplotlib2tikz.py @@ -709,6 +709,10 @@ def _draw_line2d( data, obj ): data, line_xcolor, _ = _mpl_color2xcolor( data, color ) addplot_options.append( line_xcolor ) + alpha = obj.get_alpha() + ...
Add opacity to _draw_line2d.
py
diff --git a/pyrogram/client/methods/messages/send_message.py b/pyrogram/client/methods/messages/send_message.py index <HASH>..<HASH> 100644 --- a/pyrogram/client/methods/messages/send_message.py +++ b/pyrogram/client/methods/messages/send_message.py @@ -88,10 +88,18 @@ class SendMessage(BaseClient): ) ...
Fix bad behaviours for Python <<I> Pyrogram was relying on dict keys being "ordered" (keys keeping insertion order).
py
diff --git a/walrus/models.py b/walrus/models.py index <HASH>..<HASH> 100644 --- a/walrus/models.py +++ b/walrus/models.py @@ -674,7 +674,7 @@ class Model(_with_metaclass(BaseModel)): user = User.create(first_name='Charlie', last_name='Leifer') """ instance = cls(**kwargs) - instan...
Remove redundant call to delete() when create() is called. Refs #<I>
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -389,3 +389,8 @@ linkcheck_allowed_redirects = { r'https://github.com/Unidata/MetPy/issues/new/choose': r'https://github.com/login.*choose', r'https://doi.org/.*': r'https://.*' } + +linkcheck_reques...
MNT: Work-around GitHub docs failing linkchecker For some reason the GitHub docs site is giving a <I> for things like cURL and the Sphinx linkchecker. Give it a "real" user agent to get around this for now.
py
diff --git a/pyontutils/utils.py b/pyontutils/utils.py index <HASH>..<HASH> 100644 --- a/pyontutils/utils.py +++ b/pyontutils/utils.py @@ -125,6 +125,7 @@ def _loadPrefixes(): 'hasRole':'http://purl.obolibrary.org/obo/RO_0000087', 'inheresIn':'http://purl.obolibrary.org/obo/RO_0000052', 'bear...
utils added prefix for RO:<I>
py
diff --git a/gwpy/data/series.py b/gwpy/data/series.py index <HASH>..<HASH> 100644 --- a/gwpy/data/series.py +++ b/gwpy/data/series.py @@ -51,10 +51,10 @@ class Series(Array): # simple slice, need to copy x0 away from self def __getslice__(self, i, j): - new = super(Series, self).__getslice__(i, j) -...
Series.__getslice__: fixed metadata problem
py
diff --git a/modeltranslation/utils.py b/modeltranslation/utils.py index <HASH>..<HASH> 100644 --- a/modeltranslation/utils.py +++ b/modeltranslation/utils.py @@ -2,7 +2,7 @@ from contextlib import contextmanager import six -from django.utils.encoding import force_text +from django.utils.encoding import force_str ...
replace force_text to support django 3
py
diff --git a/flask_talisman/talisman.py b/flask_talisman/talisman.py index <HASH>..<HASH> 100644 --- a/flask_talisman/talisman.py +++ b/flask_talisman/talisman.py @@ -364,7 +364,10 @@ class Talisman(object): try: import secrets - get_random_string = secrets.token_urlsafe # pragma: no cover + def get_rand...
Restrict NONCE to correct length (#<I>)
py
diff --git a/qingstor/sdk/build.py b/qingstor/sdk/build.py index <HASH>..<HASH> 100644 --- a/qingstor/sdk/build.py +++ b/qingstor/sdk/build.py @@ -97,6 +97,15 @@ class Builder: system=sys.platform ) + # Handle header X-QS-MetaData dict, for example: + # {'X-QS-MetaD...
request: Fix dict not handled properly in canonicalized headers (#<I>)
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -35,7 +35,6 @@ extensions = [ 'sphinx.ext.autodoc', 'sphinxcontrib.napoleon', 'sphinx.ext.todo', - 'sphinx.ext.imgmath' ]
changed path to package, to try and get autodoc in readthedocs working.
py
diff --git a/tests/test_utils.py b/tests/test_utils.py index <HASH>..<HASH> 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -495,4 +495,6 @@ class JsonMatcher(object): self.expected = expected def __eq__(self, json_str): + # Assert to provide a more meaningful error + assert ...
Provide meaningful error in JsonMatcher
py
diff --git a/tests/test_lists.py b/tests/test_lists.py index <HASH>..<HASH> 100644 --- a/tests/test_lists.py +++ b/tests/test_lists.py @@ -46,21 +46,27 @@ class ListTest(RedisTestCase): for init in (self.create_list, list): L = init(data) - # Correct type, correct values + ...
Test so-far-untested lines in lists
py
diff --git a/salt/modules/restconf.py b/salt/modules/restconf.py index <HASH>..<HASH> 100644 --- a/salt/modules/restconf.py +++ b/salt/modules/restconf.py @@ -69,7 +69,7 @@ def path_check(primary_path, init_path): log.debug("modules_restconf_path_check: about to attempt to get primary path") existing_raw = __...
Update salt/modules/restconf.py
py
diff --git a/tests/test_indices.py b/tests/test_indices.py index <HASH>..<HASH> 100644 --- a/tests/test_indices.py +++ b/tests/test_indices.py @@ -1090,14 +1090,16 @@ class TestTempWetDryPrecipWarmColdQuarter: tas = xci.tg_mean(tas, freq=freq) - if use_dask and freq != "D": + if use_dask: + ...
Skip daily+dask tests instead of making them pass
py
diff --git a/tests/__init__.py b/tests/__init__.py index <HASH>..<HASH> 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,5 +1,6 @@ from mocker import MockerTestCase from flask import Flask +from werkzeug.exceptions import NotFound from flaskext import mongoalchemy from tests.helpers import _make_todo_do...
Moved mocker helpers method to super class
py
diff --git a/tests/test_file.py b/tests/test_file.py index <HASH>..<HASH> 100644 --- a/tests/test_file.py +++ b/tests/test_file.py @@ -123,6 +123,9 @@ def test_save_with_specified_key(): # type: () -> None path = urlparse(f.url).path if path.startswith("/avos-cloud-"): # old school aws s3 file url ...
test: be nice with gluttony file buckets
py
diff --git a/ospd/ospd.py b/ospd/ospd.py index <HASH>..<HASH> 100644 --- a/ospd/ospd.py +++ b/ospd/ospd.py @@ -235,7 +235,7 @@ class OSPDaemon(object): for name, param in BASE_SCANNER_PARAMS.items(): self.add_scanner_param(name, param) self.vts = dict() - self.vt_id_pattern = re.co...
Fix regexp by escaping the backslash Would have been possible to use raw string here too.
py
diff --git a/gcloud/bigtable/happybase/connection.py b/gcloud/bigtable/happybase/connection.py index <HASH>..<HASH> 100644 --- a/gcloud/bigtable/happybase/connection.py +++ b/gcloud/bigtable/happybase/connection.py @@ -57,7 +57,8 @@ _DISABLE_TMPL = 'Connection.disable_table(%r) was called, but ' + _BASE_DISABLE _IS_EN...
Fixing language about HappyBase table compaction.
py
diff --git a/salt/crypt.py b/salt/crypt.py index <HASH>..<HASH> 100644 --- a/salt/crypt.py +++ b/salt/crypt.py @@ -16,7 +16,6 @@ import base64 # Import Cryptography libs from Crypto.Cipher import AES from Crypto.Hash import MD5 -import Crypto.PublicKey.RSA from M2Crypto import RSA # Import zeromq libs @@ -54,17 ...
Use m2 to gen the rsa keys, fix problem with random seed in pycrypto
py
diff --git a/baron/conftest.py b/baron/conftest.py index <HASH>..<HASH> 100644 --- a/baron/conftest.py +++ b/baron/conftest.py @@ -34,6 +34,10 @@ def diff(left, right): to_return += [""] to_return += [`left`, "==", `right`] to_return += [""] + with open("/tmp/a", "w") as a: + a.write(json.dumps...
[mod] write output to /tmp to use vimdiff
py
diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py index <HASH>..<HASH> 100644 --- a/spyder/app/mainwindow.py +++ b/spyder/app/mainwindow.py @@ -618,8 +618,6 @@ class MainWindow(QMainWindow): ui_theme = CONF.get('appearance', 'ui_theme') color_scheme = CONF.get('appearance', 'selected')...
Clear logs on post_visible_setup
py
diff --git a/src/ossos-pipeline/ossos/astrom.py b/src/ossos-pipeline/ossos/astrom.py index <HASH>..<HASH> 100644 --- a/src/ossos-pipeline/ossos/astrom.py +++ b/src/ossos-pipeline/ossos/astrom.py @@ -857,7 +857,9 @@ class Observation(object): ftype='p', ...
fixxed error in ordering of CCDNUM/FTYPE in rawname
py
diff --git a/aiohttp/__init__.py b/aiohttp/__init__.py index <HASH>..<HASH> 100644 --- a/aiohttp/__init__.py +++ b/aiohttp/__init__.py @@ -1,4 +1,4 @@ -__version__ = "3.8.0a0" +__version__ = "3.8.0a1" from typing import Tuple
Bump to <I>a1
py