diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/setuptools/dist.py b/setuptools/dist.py index <HASH>..<HASH> 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -808,9 +808,12 @@ class Feature: @staticmethod def warn_deprecated(): - warnings.warn("Features are deprecated and will be removed in " - "a future version....
Set stacklevel on DeprecationWarning for more relevant locality.
py
diff --git a/py/h2o.py b/py/h2o.py index <HASH>..<HASH> 100644 --- a/py/h2o.py +++ b/py/h2o.py @@ -1091,18 +1091,19 @@ class H2O(object): def inspect(self, key, offset=None, view=None, ignoreH2oError=False, timeoutSecs=30): if beta_features: params = { - "key": key, + ...
fix Inspect with beta_features
py
diff --git a/openquake/commonlib/source.py b/openquake/commonlib/source.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/source.py +++ b/openquake/commonlib/source.py @@ -337,11 +337,11 @@ class RlzsAssoc(collections.Mapping): :param dicts: a list of dicts with key (trt_model_id, gsim) :return...
Fixed a bug in collect_by_rlz
py
diff --git a/peri/opt/addsubtract.py b/peri/opt/addsubtract.py index <HASH>..<HASH> 100644 --- a/peri/opt/addsubtract.py +++ b/peri/opt/addsubtract.py @@ -649,7 +649,7 @@ def identify_misfeatured_regions(st, filter_size=5, sigma_cutoff=8.): def add_subtract_misfeatured_tile( st, tile, rad='calc', max_iter=3...
addsub: Removing kwargs usage from _feature_guess in add_sub_misfeatured_tile
py
diff --git a/lib/git/objects/util.py b/lib/git/objects/util.py index <HASH>..<HASH> 100644 --- a/lib/git/objects/util.py +++ b/lib/git/objects/util.py @@ -60,7 +60,7 @@ def get_user_id(): """:return: string identifying the currently active system user as name@node :note: user can be set with the 'USER' environment ...
util.get_user_id(): Will try a windows environment variable as well, the method now yields good results on all tested platforms
py
diff --git a/tests/unit/states/test_docker_network.py b/tests/unit/states/test_docker_network.py index <HASH>..<HASH> 100644 --- a/tests/unit/states/test_docker_network.py +++ b/tests/unit/states/test_docker_network.py @@ -69,10 +69,14 @@ class DockerNetworkTestCase(TestCase, LoaderModuleMockMixin): ''' ...
Fix broken unit test test_network_absent This started failing following commit <I>c<I>, which relied on the 'Name' key being present in the return value of docker.networks - as the mock didn't have this set the test started failing.
py
diff --git a/kdtree/kdtree.py b/kdtree/kdtree.py index <HASH>..<HASH> 100644 --- a/kdtree/kdtree.py +++ b/kdtree/kdtree.py @@ -382,12 +382,16 @@ class KDNode(Node): best = self # sort the children, nearer one first - children = sorted(self.children, key=lambda (c, p): c.dist(point)) + ...
fix nearest neighbor search results were sometimes not actually the nearest point to the reference point
py
diff --git a/address/models.py b/address/models.py index <HASH>..<HASH> 100644 --- a/address/models.py +++ b/address/models.py @@ -161,8 +161,8 @@ class AddressField(models.ForeignKey): postal_code = value.get('postal_code', '') street_address = value.get('street_address', '') for...
Latitude and longitude get for non-existant values returns None Django is trying to convert the empty strings to floats and failing if latitude and longitude are not provided.  Using None instead of '' seems to provide better behavior.
py
diff --git a/facebook/__init__.py b/facebook/__init__.py index <HASH>..<HASH> 100755 --- a/facebook/__init__.py +++ b/facebook/__init__.py @@ -234,7 +234,7 @@ class GraphAPI(object): # or it does not need `access_token`. if post_args and "access_token" not in post_args: post_a...
Add `access_token` to request if args is empty. <I>bf<I>c9aa<I>d9eaf<I>eb1c0d<I>a3f<I>ee2a9 breaks backwards compatibility by not adding the access token to requests where `args` has not been set.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ extras_require = { 'myst-parser', 'nbconvert <6.0', 'graphviz', - 'myst_nb ==0.12.2' + 'myst_nb ==0.12.2', 'aiohttp', 'panel', ]
Fixed missing comma in setup.py
py
diff --git a/websocket/_http.py b/websocket/_http.py index <HASH>..<HASH> 100644 --- a/websocket/_http.py +++ b/websocket/_http.py @@ -114,7 +114,11 @@ def _open_socket(addrinfo_list, sockopt, timeout): sock.connect(address) except socket.error as error: error.remote_ip = str(address[...
Added support for windows connection refused error
py
diff --git a/pyvodb/load.py b/pyvodb/load.py index <HASH>..<HASH> 100644 --- a/pyvodb/load.py +++ b/pyvodb/load.py @@ -9,6 +9,7 @@ import yaml from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy.sql.expression import select +from dateutil import rrule from . import tables ...
Check rrule syntax when loading the data The "tests" for pyvo-data involve loading the DB. Make loading fail when the data includes an invalid recurrence rule for meetups.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,12 +1,11 @@ from setuptools import setup -import securitycenter with open('README.rst') as f: long_description = f.read() setup( name='pySecurityCenter', - version=securitycenter.__version__, + versio...
avoid circular dependency in setup.py (requests isn't installed yet)
py
diff --git a/num2words/__init__.py b/num2words/__init__.py index <HASH>..<HASH> 100644 --- a/num2words/__init__.py +++ b/num2words/__init__.py @@ -39,6 +39,7 @@ from . import lang_ES_VE from . import lang_ES_CO from . import lang_VN from . import lang_TR +from . import lang_UK CONVERTER_CLASSES = { @@ -64,7 +65...
Updated __init__.py, added Ukrainian
py
diff --git a/paperwork_backend/util.py b/paperwork_backend/util.py index <HASH>..<HASH> 100644 --- a/paperwork_backend/util.py +++ b/paperwork_backend/util.py @@ -215,8 +215,12 @@ def rm_rf(path): os.unlink(filepath) for dirname in dirs: dirpath = os.path.join(root, dirnam...
util/rm_rf: fix deletion of symlinks
py
diff --git a/jaraco/util/logging.py b/jaraco/util/logging.py index <HASH>..<HASH> 100644 --- a/jaraco/util/logging.py +++ b/jaraco/util/logging.py @@ -1,4 +1,4 @@ -from __future__ import absolute_import +from __future__ import absolute_import, unicode_literals import logging import time
All modules now use unicode literals for Python 3 compatibility.
py
diff --git a/twine/commands/upload.py b/twine/commands/upload.py index <HASH>..<HASH> 100644 --- a/twine/commands/upload.py +++ b/twine/commands/upload.py @@ -33,7 +33,7 @@ def skip_upload(response, skip_existing, package): # error message in the reason attribute. Other implementations return a # 403 or 409 s...
Update twine/commands/upload.py
py
diff --git a/cwltool/factory.py b/cwltool/factory.py index <HASH>..<HASH> 100644 --- a/cwltool/factory.py +++ b/cwltool/factory.py @@ -49,9 +49,10 @@ class Factory(object): self.loading_context = loading_context if loading_context is None: self.loading_context = LoadingContext() - ...
ensure that runtime_context is not None
py
diff --git a/sphinx/util/convert-trac.py b/sphinx/util/convert-trac.py index <HASH>..<HASH> 100644 --- a/sphinx/util/convert-trac.py +++ b/sphinx/util/convert-trac.py @@ -49,7 +49,7 @@ def replace_inline_code(matcher): def replace_code_block(matcher): r"\{\{\{\n(?P<code>(.|\n)*?)^\}\}\}" - return '::\n' + inden...
Added a blank line following :: for code blocks
py
diff --git a/tensorflow_datasets/core/example_serializer.py b/tensorflow_datasets/core/example_serializer.py index <HASH>..<HASH> 100644 --- a/tensorflow_datasets/core/example_serializer.py +++ b/tensorflow_datasets/core/example_serializer.py @@ -69,10 +69,12 @@ def _dict_to_tf_example(example_dict, tensor_info_dict): ...
Revised run_with_reraise for style
py
diff --git a/redis_metrics/models.py b/redis_metrics/models.py index <HASH>..<HASH> 100644 --- a/redis_metrics/models.py +++ b/redis_metrics/models.py @@ -48,18 +48,21 @@ class R(object): # Create the connection to Redis self.r = redis.StrictRedis(host=self.host, port=self.port, db=self.db) - def...
made since optional in _date_range method
py
diff --git a/sphinxcontrib/katex.py b/sphinxcontrib/katex.py index <HASH>..<HASH> 100644 --- a/sphinxcontrib/katex.py +++ b/sphinxcontrib/katex.py @@ -133,13 +133,17 @@ def copy_katex_css_file(app, css_file_name): def katex_autorenderer_content(app): - content = 'renderMathInElement(document.body, latex_options...
Fix auto-rendering math Since we don't know whether the script will be loaded before or after the DOM is finished, add a function to check for that. Also, always write latex_options to avoid an undefined variable error.
py
diff --git a/prom/__init__.py b/prom/__init__.py index <HASH>..<HASH> 100644 --- a/prom/__init__.py +++ b/prom/__init__.py @@ -11,7 +11,7 @@ from .utils import get_objects from .exception import InterfaceError, Error -__version__ = '0.9.5' +__version__ = '0.9.50' def configure_environ(dsn_env_name='PROM_DSN'): ...
whoops, set version back instead of forward, sigh
py
diff --git a/pygal/test/test_line_log_none_max_solved.py b/pygal/test/test_line_log_none_max_solved.py index <HASH>..<HASH> 100644 --- a/pygal/test/test_line_log_none_max_solved.py +++ b/pygal/test/test_line_log_none_max_solved.py @@ -11,5 +11,5 @@ from math import cos, sin chart = Line(title='test', x_label_rotation=...
For issue #<I> No new failure!
py
diff --git a/esp8266/scripts/ntptime.py b/esp8266/scripts/ntptime.py index <HASH>..<HASH> 100644 --- a/esp8266/scripts/ntptime.py +++ b/esp8266/scripts/ntptime.py @@ -10,10 +10,12 @@ except: # (date(2000, 1, 1) - date(1900, 1, 1)).days * 24*60*60 NTP_DELTA = 3155673600 +host = "pool.ntp.org" + def time(): NTP...
esp<I>/scripts/ntptime: Allow to override NTP server. This is not part of public API, variable name may change, or it can be replaced with a function.
py
diff --git a/codemirror/utils.py b/codemirror/utils.py index <HASH>..<HASH> 100644 --- a/codemirror/utils.py +++ b/codemirror/utils.py @@ -49,9 +49,19 @@ class CodeMirrorJSONEncoder(json.JSONEncoder): self.stash = {} def default(self, obj): + def encode_if_necessary(x): + try: + ...
Deal with Unicode JS snippets
py
diff --git a/harpoon/executor.py b/harpoon/executor.py index <HASH>..<HASH> 100644 --- a/harpoon/executor.py +++ b/harpoon/executor.py @@ -88,10 +88,11 @@ class CliParser(object): opts = {} if os.path.exists("./harpoon.yml"): opts["default"] = "./harpoon.yml" + else: + o...
--harpoon-config shouldn't be required if we have a default
py
diff --git a/tests/test_transaction.py b/tests/test_transaction.py index <HASH>..<HASH> 100644 --- a/tests/test_transaction.py +++ b/tests/test_transaction.py @@ -4,13 +4,6 @@ from sqlite3 import OperationalError from threading import Thread -def threading_test(function, iterable): - threads = [Thread(target=fu...
don't need separate function for tests
py
diff --git a/molo/core/content_import/views.py b/molo/core/content_import/views.py index <HASH>..<HASH> 100644 --- a/molo/core/content_import/views.py +++ b/molo/core/content_import/views.py @@ -34,8 +34,8 @@ def get_repo_languages(request): @permission_classes((IsAuthenticated,)) def import_content(request): da...
Fix name used for repo data in import views
py
diff --git a/bids/layout/models.py b/bids/layout/models.py index <HASH>..<HASH> 100644 --- a/bids/layout/models.py +++ b/bids/layout/models.py @@ -227,15 +227,6 @@ class BIDSFile(Base): except Exception: return None - # @property - # def metadata(self): - # """ Return all associated...
make sure dtypes are represented as strings before serialization
py
diff --git a/pymc/distributions/continuous.py b/pymc/distributions/continuous.py index <HASH>..<HASH> 100644 --- a/pymc/distributions/continuous.py +++ b/pymc/distributions/continuous.py @@ -2179,6 +2179,7 @@ class HalfCauchy(PositiveContinuous): f(x \mid \beta) = \frac{2}{\pi \beta [1 + (\frac{x}{\beta})^2]} ...
Update pymc.HalfCauchy docsting (#<I>) * fixed pymc.HalfCauchy docsting * added :context: close-figs
py
diff --git a/holoviews/element/chart.py b/holoviews/element/chart.py index <HASH>..<HASH> 100644 --- a/holoviews/element/chart.py +++ b/holoviews/element/chart.py @@ -166,6 +166,7 @@ class Chart(Element2D): @classmethod def collapse_data(cls, data, function, **kwargs): + new_data = [arr[:, 1:] for ar...
Fixed accidental removal of line from collapse_data method
py
diff --git a/eventsourcing/application.py b/eventsourcing/application.py index <HASH>..<HASH> 100644 --- a/eventsourcing/application.py +++ b/eventsourcing/application.py @@ -500,11 +500,12 @@ class ProcessingEvent: *aggregates: Optional[Union[Aggregate, AggregateEvent[Aggregate]]], **kwargs: Any, ...
Added deprecation warnings.
py
diff --git a/src/ai/backend/client/cli/admin/sessions.py b/src/ai/backend/client/cli/admin/sessions.py index <HASH>..<HASH> 100644 --- a/src/ai/backend/client/cli/admin/sessions.py +++ b/src/ai/backend/client/cli/admin/sessions.py @@ -175,8 +175,8 @@ def session(sess_id_or_alias): ] if is_legacy_server(): ...
Fix GQL field type mistake in "admin session" command
py
diff --git a/python/dllib/src/test/bigdl/nnframes/test_nn_classifier.py b/python/dllib/src/test/bigdl/nnframes/test_nn_classifier.py index <HASH>..<HASH> 100644 --- a/python/dllib/src/test/bigdl/nnframes/test_nn_classifier.py +++ b/python/dllib/src/test/bigdl/nnframes/test_nn_classifier.py @@ -522,7 +522,7 @@ class Tes...
Support ML Vector for NNFrames. (#<I>) * support ML vec * deprecate Vector Preprocessing
py
diff --git a/tests/unit/test_popquotes.py b/tests/unit/test_popquotes.py index <HASH>..<HASH> 100644 --- a/tests/unit/test_popquotes.py +++ b/tests/unit/test_popquotes.py @@ -1,6 +1,7 @@ import re from pmxbot import popquotes +from pmxbot import botbase quote_pattern = re.compile('\(\d+/\d+\): .+') @@ -8,3 +9,...
Added a test to ensure that that popquotes commands are registered properly
py
diff --git a/trakt/objects/list.py b/trakt/objects/list.py index <HASH>..<HASH> 100644 --- a/trakt/objects/list.py +++ b/trakt/objects/list.py @@ -1,3 +1,4 @@ +from trakt.core.helpers import from_iso8601 from trakt.objects.core.helpers import update_attributes @@ -40,6 +41,9 @@ class List(object): if not ...
Fixed an issue where `List.updated_at` wasn't being parsed into a `datetime` object
py
diff --git a/blimpy/calib_utils/calib_plots.py b/blimpy/calib_utils/calib_plots.py index <HASH>..<HASH> 100644 --- a/blimpy/calib_utils/calib_plots.py +++ b/blimpy/calib_utils/calib_plots.py @@ -218,7 +218,7 @@ def plot_diode_fold(dio_cross,bothfeeds=True,feedtype='l',min_samp=-500,max_samp """ Plots the calc...
Issue #<I> During setup.py execution, the function description border of plot_diode_fold() caused a misscan in Python to the end of file.
py
diff --git a/tohu/v4/primitive_generators.py b/tohu/v4/primitive_generators.py index <HASH>..<HASH> 100644 --- a/tohu/v4/primitive_generators.py +++ b/tohu/v4/primitive_generators.py @@ -165,6 +165,7 @@ class FakerGenerator(PrimitiveGenerator): self.fake = Faker(locale=locale) self.randgen = getattr...
Need to seed faker instance at least once to decouple if from the global random state
py
diff --git a/graphos/renderers/highcharts.py b/graphos/renderers/highcharts.py index <HASH>..<HASH> 100644 --- a/graphos/renderers/highcharts.py +++ b/graphos/renderers/highcharts.py @@ -551,7 +551,8 @@ class HeatMap_2(BaseHighCharts): for i in range(0,X_len): for j in range(0, Y_len-1): ...
updated seried data in heatmap2, as options are updated from plotoptions
py
diff --git a/spyderlib/utils/vcs.py b/spyderlib/utils/vcs.py index <HASH>..<HASH> 100644 --- a/spyderlib/utils/vcs.py +++ b/spyderlib/utils/vcs.py @@ -23,8 +23,8 @@ VCS_INFOS = { ('hgtk', ['log']) ) ), '.git': dict(name="git", - ...
File/Project explorer: fixed [by shchelokovskyy] Git commit/browse support Fixes issue <I> Fixes issue <I>
py
diff --git a/python/pyspark/ml/feature.py b/python/pyspark/ml/feature.py index <HASH>..<HASH> 100644 --- a/python/pyspark/ml/feature.py +++ b/python/pyspark/ml/feature.py @@ -340,7 +340,7 @@ class CountVectorizer(JavaEstimator, HasInputCol, HasOutputCol, JavaMLReadable, """ Sets the value of :py:attr...
[MINOR][ML][PYSPARK] Fix omissive param setters which should use _set method ## What changes were proposed in this pull request? #<I> make Python param setters use the `_set` method. This PR fix omissive ones. ## How was this patch tested? Existing tests. cc jkbradley sethah
py
diff --git a/tests/cli/collectors.py b/tests/cli/collectors.py index <HASH>..<HASH> 100644 --- a/tests/cli/collectors.py +++ b/tests/cli/collectors.py @@ -2,7 +2,6 @@ # Copyright (C) 2021 Satoru SATOH <satoru.satoh@gmail.com> # License: MIT # -# pylint: disable=missing-docstring """Provides base class to collect te...
fix: add doctext for the class and remove a pylint's disable
py
diff --git a/ontobio/io/gafparser.py b/ontobio/io/gafparser.py index <HASH>..<HASH> 100644 --- a/ontobio/io/gafparser.py +++ b/ontobio/io/gafparser.py @@ -245,8 +245,6 @@ class GafParser(assocparser.AssocParser): if result.result_type == qc.ResultType.WARNING: self.report.warning(line, ass...
removing the skip line for soft gorule checks
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,8 +6,6 @@ import setuptools def read_long_description(): with io.open('README.rst', encoding='utf-8') as f: data = f.read() - with io.open('CHANGES.rst', encoding='utf-8') as f: - data += '\n\n'...
Changelog is referenced in the readme, so omit it from the package metadata.
py
diff --git a/arctic/_compression.py b/arctic/_compression.py index <HASH>..<HASH> 100644 --- a/arctic/_compression.py +++ b/arctic/_compression.py @@ -4,16 +4,16 @@ import logging logger = logging.getLogger(__name__) +# switch to parallel LZ4 compress (and potentially other parallel stuff), Default True +ENABLE_PA...
If cython lz4 cannot import, disable parallel compression
py
diff --git a/src/txkube/test/test_authentication.py b/src/txkube/test/test_authentication.py index <HASH>..<HASH> 100644 --- a/src/txkube/test/test_authentication.py +++ b/src/txkube/test/test_authentication.py @@ -163,7 +163,7 @@ class AuthenticateWithServiceAccountTests(TestCase): self.patch(os, "environ", e...
KubeConfig.from_service_account() must take a path in text mode for Python 2 and 3
py
diff --git a/pyasn1/type/univ.py b/pyasn1/type/univ.py index <HASH>..<HASH> 100644 --- a/pyasn1/type/univ.py +++ b/pyasn1/type/univ.py @@ -764,9 +764,7 @@ class BitString(base.AbstractSimpleAsn1Item): elif self.__namedValues and not value.isdigit(): # named bits like 'Urgent, Active' bitP...
refactored named bits bitstring initialization
py
diff --git a/ploy/__init__.py b/ploy/__init__.py index <HASH>..<HASH> 100644 --- a/ploy/__init__.py +++ b/ploy/__init__.py @@ -405,7 +405,7 @@ class Controller(object): for instance in self.get_instances(command='init_ssh_key'): print instance elif args.com...
Allow command line completion of all instances for ``debug`` command.
py
diff --git a/eliot/tests/test_prettyprint.py b/eliot/tests/test_prettyprint.py index <HASH>..<HASH> 100644 --- a/eliot/tests/test_prettyprint.py +++ b/eliot/tests/test_prettyprint.py @@ -1,5 +1,5 @@ """ -Tests for C{{eliot.prettyprint}}. +Tests for C{eliot.prettyprint}. """ from __future__ import unicode_literals ...
JIRA is destroying my brain.
py
diff --git a/angr/analyses/cfg/cfg_node.py b/angr/analyses/cfg/cfg_node.py index <HASH>..<HASH> 100644 --- a/angr/analyses/cfg/cfg_node.py +++ b/angr/analyses/cfg/cfg_node.py @@ -205,4 +205,12 @@ class CFGNode(object): return HookNode(self.addr, self.size, self.simprocedure_name) return BlockNode(...
CFGNode: add a "block" property as a handy method to create a block from a CFGNode.
py
diff --git a/master/buildbot/test/unit/test_changes_gitpoller.py b/master/buildbot/test/unit/test_changes_gitpoller.py index <HASH>..<HASH> 100644 --- a/master/buildbot/test/unit/test_changes_gitpoller.py +++ b/master/buildbot/test/unit/test_changes_gitpoller.py @@ -120,10 +120,11 @@ class GitOutputParsing(gpo.GetProce...
Tests now check file path with spaces and octal encoded
py
diff --git a/pug/db/more_django_viewsets.py b/pug/db/more_django_viewsets.py index <HASH>..<HASH> 100644 --- a/pug/db/more_django_viewsets.py +++ b/pug/db/more_django_viewsets.py @@ -10,7 +10,7 @@ from pug.db import more_django_filters from pug.nlp.util import listify def create_model_viewsets(local, app_names=None...
The AMAZING, magical, does what you'd expect, Django Rest Framework, enhanced with ALL the Django filters\!
py
diff --git a/pyana/examples/gp_ptspec.py b/pyana/examples/gp_ptspec.py index <HASH>..<HASH> 100644 --- a/pyana/examples/gp_ptspec.py +++ b/pyana/examples/gp_ptspec.py @@ -184,9 +184,9 @@ def gp_ptspec(): name = os.path.join(outDir, 'meanPtLMR'), xlabel = '{/Symbol \326}s_{NN} (GeV)', ylabel = 'LMR {/Symb...
gp_ptspec: fix missing comma, larger bmargin in meanPtLMR
py
diff --git a/docx2html/core.py b/docx2html/core.py index <HASH>..<HASH> 100644 --- a/docx2html/core.py +++ b/docx2html/core.py @@ -73,6 +73,9 @@ def get_namespace(el, namespace): def convert_image(target, image_size): _, extension = os.path.splitext(os.path.basename(target)) + # If the image size has a zero ...
refs #<I>: images with 0 height or width no longer throw errors
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,19 @@ #!/usr/bin/env python import os +import sys from setuptools import setup, find_packages +from setuptools.command.test import test as TestCommand + +class PyTest(TestCommand): + def finalize_options(self):...
Add tests as a subcommand for setup.py
py
diff --git a/bids/variables/io.py b/bids/variables/io.py index <HASH>..<HASH> 100644 --- a/bids/variables/io.py +++ b/bids/variables/io.py @@ -177,7 +177,7 @@ def _load_time_variables(layout, dataset=None, columns=None, scan_length=None, ignore_strict_entities=['suffix']) ...
read_table is deprecated
py
diff --git a/command/build_clib.py b/command/build_clib.py index <HASH>..<HASH> 100644 --- a/command/build_clib.py +++ b/command/build_clib.py @@ -184,9 +184,25 @@ class build_clib (Command): # get_library_names () - def build_libraries (self, libraries): + def get_source_files (self): + self.chec...
[Bug #<I>] Make the 'sdist' command work when the distribution contains libraries. This is done by adding a .get_source_files() method, contributed by Rene Liebscher and slightly modified. Remove an unused local variable spotted by PyChecker
py
diff --git a/master/buildbot/test/unit/test_locks.py b/master/buildbot/test/unit/test_locks.py index <HASH>..<HASH> 100644 --- a/master/buildbot/test/unit/test_locks.py +++ b/master/buildbot/test/unit/test_locks.py @@ -201,6 +201,23 @@ class LockTests(unittest.TestCase): self.assertTrue(lock.isAvailable(req_wa...
tests: Add test for non-claimed lock release
py
diff --git a/angr/path.py b/angr/path.py index <HASH>..<HASH> 100644 --- a/angr/path.py +++ b/angr/path.py @@ -246,6 +246,12 @@ class Path(object): self._run_error = None self._reachable = None + # for unicorn, we check if the previous run touched any symbolic data + if simuvex.o.UNICO...
check for symbolic data in the previous block's actions for unicorn
py
diff --git a/libact/query_strategies/__init__.py b/libact/query_strategies/__init__.py index <HASH>..<HASH> 100644 --- a/libact/query_strategies/__init__.py +++ b/libact/query_strategies/__init__.py @@ -5,10 +5,7 @@ import logging logger = logging.getLogger(__name__) from .active_learning_by_learning import ActiveL...
remove try except when hintsvm is not installed
py
diff --git a/datalad_service/tasks/description.py b/datalad_service/tasks/description.py index <HASH>..<HASH> 100644 --- a/datalad_service/tasks/description.py +++ b/datalad_service/tasks/description.py @@ -15,7 +15,7 @@ def update_description(store, dataset, description_fields): description = ds.repo.repo.git.sho...
prevent KeyError when "License" field does not exist on description
py
diff --git a/dinsort.py b/dinsort.py index <HASH>..<HASH> 100644 --- a/dinsort.py +++ b/dinsort.py @@ -34,10 +34,20 @@ def normalize(text, variant=VARIANT1): With `variant` set to ``VARIANT1`` (default), german umlauts are transformed to plain chars: ``ä`` -> ``a``, ``ö`` -> ``o``, ... + >>> print(norm...
Give samples for calls to normalize().
py
diff --git a/tests/unit/modules/test_ini_manage.py b/tests/unit/modules/test_ini_manage.py index <HASH>..<HASH> 100644 --- a/tests/unit/modules/test_ini_manage.py +++ b/tests/unit/modules/test_ini_manage.py @@ -52,13 +52,16 @@ class IniManageTestCase(TestCase): maxDiff = None - def setUp(self, linesep=os.li...
fix(linting): errors
py
diff --git a/salt/modules/junos.py b/salt/modules/junos.py index <HASH>..<HASH> 100644 --- a/salt/modules/junos.py +++ b/salt/modules/junos.py @@ -296,8 +296,9 @@ def rpc(cmd=None, dest=None, **kwargs): return ret format_ = op.pop("format", "xml") - # when called from state, dest becomes part of op v...
Add backin the dest changes for rpc due to an updated master branch
py
diff --git a/ncpol2sdpa/sdp_relaxation.py b/ncpol2sdpa/sdp_relaxation.py index <HASH>..<HASH> 100644 --- a/ncpol2sdpa/sdp_relaxation.py +++ b/ncpol2sdpa/sdp_relaxation.py @@ -337,7 +337,8 @@ class SdpRelaxation(object): self.substitutions) prin...
Constraints in level=-1 relaxations get a default 0-order localization
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -42,17 +42,14 @@ third_party_modules = ['gflags', 'gflags_validators'] packages.extend(setup_utils.get_missing_requirements(third_party_packages)) py_modules.extend(setup_utils.get_missing_requirements(third_party_modules)) ...
alpha9, remove setuptools as it doesn't work with the current config.
py
diff --git a/aomi/render.py b/aomi/render.py index <HASH>..<HASH> 100644 --- a/aomi/render.py +++ b/aomi/render.py @@ -60,7 +60,7 @@ def aws(client, path, opt): if creds and 'data' in creds: print("AWS_ACCESS_KEY_ID=\"%s\"" % creds['data']['access_key']) print("AWS_SECRET_ACCESS_KEY=\"%s\"" % cre...
only render AWS_SECURITY_TOKEN if it is really there
py
diff --git a/flask_rest_jsonapi/pagination.py b/flask_rest_jsonapi/pagination.py index <HASH>..<HASH> 100644 --- a/flask_rest_jsonapi/pagination.py +++ b/flask_rest_jsonapi/pagination.py @@ -36,8 +36,9 @@ def add_pagination_links(data, item_count, querystring, base_url): # compute last link page_size = int(qu...
pagination links: remove page number equal to 0 when item count is 0
py
diff --git a/fedmsg.d/endpoints.py b/fedmsg.d/endpoints.py index <HASH>..<HASH> 100644 --- a/fedmsg.d/endpoints.py +++ b/fedmsg.d/endpoints.py @@ -39,8 +39,5 @@ config = dict( "bodhi.%s" % hostname: ["tcp://127.0.0.1:3001"], "fas.%s" % hostname: ["tcp://127.0.0.1:3002"], "fedoratagger.%s" % h...
Remove some example endpoints from the default fedmsg.d/endpoints.py Among them, pkgdb.
py
diff --git a/tests/__init__.py b/tests/__init__.py index <HASH>..<HASH> 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -15,11 +15,11 @@ # # You should have received a copy of the GNU Lesser General Public License # along with subliminal. If not, see <http://www.gnu.org/licenses/>. -from . import test_lan...
Add test_videos to the main test suite
py
diff --git a/tests/test_verify_content.py b/tests/test_verify_content.py index <HASH>..<HASH> 100644 --- a/tests/test_verify_content.py +++ b/tests/test_verify_content.py @@ -59,7 +59,7 @@ class fuzzylist(list): """ def __init__(self, *args, maybe=(), max_maybe_items=collections.defaultdict(...
fuzzylist: Make "maybe" attribute mutable
py
diff --git a/siphon/http_util.py b/siphon/http_util.py index <HASH>..<HASH> 100644 --- a/siphon/http_util.py +++ b/siphon/http_util.py @@ -166,8 +166,8 @@ class DataQuery(object): def lonlat_box(self, west, east, south, north): r'''Add a latitude/longitude bounding box to the query. - This adds a...
changed doc string to trigger travis/coverage test please based gods travis and coverage
py
diff --git a/firenado/core/service.py b/firenado/core/service.py index <HASH>..<HASH> 100644 --- a/firenado/core/service.py +++ b/firenado/core/service.py @@ -18,6 +18,7 @@ import functools import importlib +from six import string_types class FirenadoService(object): @@ -27,7 +28,7 @@ class FirenadoService(obj...
Checking if service was informed as string using six to support Python 3. Refs: #<I>
py
diff --git a/causalinference/causal.py b/causalinference/causal.py index <HASH>..<HASH> 100644 --- a/causalinference/causal.py +++ b/causalinference/causal.py @@ -27,6 +27,7 @@ class CausalModel(object): self.propensity = None self.cutoff = None self.blocks = None + self.strata = None self.estimates = Esti...
fix post-trimming clean-up
py
diff --git a/gutenberg/gutenberg.py b/gutenberg/gutenberg.py index <HASH>..<HASH> 100644 --- a/gutenberg/gutenberg.py +++ b/gutenberg/gutenberg.py @@ -136,7 +136,7 @@ class GutenbergCorpus(object): return new_session() @functutil.memoize - def etext_metadata(self): + def _etext_metadata(self): ...
Hide some aspects of the corpus object
py
diff --git a/pyisbn/__init__.py b/pyisbn/__init__.py index <HASH>..<HASH> 100644 --- a/pyisbn/__init__.py +++ b/pyisbn/__init__.py @@ -379,9 +379,9 @@ def calculate_checksum(isbn): def convert(isbn, code='978'): """Convert ISBNs between ISBN-10 and ISBN-13. - No attempt to hyphenate converted ISBNs is made, ...
Make the convert() note more conspicuous.
py
diff --git a/tests/test_mark_tokens.py b/tests/test_mark_tokens.py index <HASH>..<HASH> 100644 --- a/tests/test_mark_tokens.py +++ b/tests/test_mark_tokens.py @@ -608,6 +608,12 @@ j # not a complex number, just a name source = f.read() except OSError: continue + + # Astroid fail...
Skip modules with invalid type comments in astroid
py
diff --git a/packages/vaex-jupyter/setup.py b/packages/vaex-jupyter/setup.py index <HASH>..<HASH> 100644 --- a/packages/vaex-jupyter/setup.py +++ b/packages/vaex-jupyter/setup.py @@ -14,7 +14,7 @@ author_email = 'maartenbreddels@gmail.com' license = 'MIT' version = version.__version__ url = 'https://www.github.com/m...
chore(jupyter): include xarray in dependencies
py
diff --git a/examples/ad_manager/authentication/generate_refresh_token.py b/examples/ad_manager/authentication/generate_refresh_token.py index <HASH>..<HASH> 100755 --- a/examples/ad_manager/authentication/generate_refresh_token.py +++ b/examples/ad_manager/authentication/generate_refresh_token.py @@ -98,7 +98,7 @@ def...
raw_input() is now input() as of Python3 (#<I>)
py
diff --git a/account/middleware.py b/account/middleware.py index <HASH>..<HASH> 100644 --- a/account/middleware.py +++ b/account/middleware.py @@ -38,6 +38,6 @@ class TimezoneMiddleware(object): templates to the user's timezone. """ def process_request(self, request): - tz = request.user.account.t...
Anonymous users don't have an account
py
diff --git a/tests/test_test_vm.py b/tests/test_test_vm.py index <HASH>..<HASH> 100644 --- a/tests/test_test_vm.py +++ b/tests/test_test_vm.py @@ -153,11 +153,11 @@ class TestGuestSession(unittest.TestCase): [r'/C', 'ping', '127.0.0.1']) self.assertTrue('Pinging' in stdout) - # failin...
multiple processes is unreliable... TODO: debug driver in guest
py
diff --git a/abydos/stats.py b/abydos/stats.py index <HASH>..<HASH> 100644 --- a/abydos/stats.py +++ b/abydos/stats.py @@ -754,14 +754,14 @@ class ConfusionTable(object): (self.tneg + self.fpos) * (self.tneg + self.fneg))) def significance(self): - """the significance (:math:`χ^...
final Unicode to LaTeX recode
py
diff --git a/tests/unit/states/file_test.py b/tests/unit/states/file_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/states/file_test.py +++ b/tests/unit/states/file_test.py @@ -120,8 +120,14 @@ class TestFileState(TestCase): # make sure no errors are returned self.assertEqual(None, ret) - ...
Update test to reflect new position of contents param The addition of the new skip_verify argument to salt.modules.file.manage_file() means that the position of contents param in returner.call_args[0] has changed. This commit updates this test to reflect the new position. Additionally, a comment has been added to hop...
py
diff --git a/examples/seq2seq/finetune_trainer.py b/examples/seq2seq/finetune_trainer.py index <HASH>..<HASH> 100755 --- a/examples/seq2seq/finetune_trainer.py +++ b/examples/seq2seq/finetune_trainer.py @@ -175,11 +175,11 @@ def main(): bool(training_args.parallel_mode == ParallelMode.DISTRIBUTED), tr...
fix logger format for non-main process (#<I>)
py
diff --git a/floyd/cli/run.py b/floyd/cli/run.py index <HASH>..<HASH> 100644 --- a/floyd/cli/run.py +++ b/floyd/cli/run.py @@ -14,11 +14,12 @@ from floyd.constants import DEFAULT_ENV, INSTANCE_NAME_MAP from floyd.client.data import DataClient from floyd.client.project import ProjectClient from floyd.cli.utils import...
allow shortnames for floyd restart
py
diff --git a/katcp/test/test_resource.py b/katcp/test/test_resource.py index <HASH>..<HASH> 100644 --- a/katcp/test/test_resource.py +++ b/katcp/test/test_resource.py @@ -93,7 +93,7 @@ class test_KATCPSensor(TimewarpAsyncTestCase): # wait for value and status waiting_value = 3 - waiting_statu...
Update test wait to align with Sensor.status and Sensor.istatus changes
py
diff --git a/marshmallow_objects/models.py b/marshmallow_objects/models.py index <HASH>..<HASH> 100644 --- a/marshmallow_objects/models.py +++ b/marshmallow_objects/models.py @@ -71,7 +71,7 @@ class ModelMeta(type): def __call__(cls, *args, **kwargs): if kwargs.pop('__post_load__', False): - ...
Fix: pop 'many' from kwargs with default to avoid error if this keyword is not into kwargs
py
diff --git a/references/detection/coco_eval.py b/references/detection/coco_eval.py index <HASH>..<HASH> 100644 --- a/references/detection/coco_eval.py +++ b/references/detection/coco_eval.py @@ -109,7 +109,7 @@ class CocoEvaluator(object): labels = prediction["labels"].tolist() rles = [ - ...
Fix reference training script for Mask R-CNN for PyTorch <I> (during evaluation after epoch, mask datatype became bool, pycocotools expects uint8) (#<I>)
py
diff --git a/dictobj.py b/dictobj.py index <HASH>..<HASH> 100644 --- a/dictobj.py +++ b/dictobj.py @@ -26,7 +26,7 @@ class DictionaryObject(object): >>> d = DictionaryObject(a=1, b=True) >>> print d - {'a':1, b=True} + DictionaryObject({'a': 1, 'b': True}) >>> d = DictionaryObject({'a':1, '...
Fixed examples in the docstrings so doctest would pass.
py
diff --git a/ccp/client.py b/ccp/client.py index <HASH>..<HASH> 100644 --- a/ccp/client.py +++ b/ccp/client.py @@ -27,6 +27,11 @@ class Client(object): self.port = port self.endpoint = "/api/events" + def deflate_severity(self, severity): + if isinstance(severity, int): + return...
Add support for passing severity directly as an int
py
diff --git a/bika/lims/exportimport/setupdata/__init__.py b/bika/lims/exportimport/setupdata/__init__.py index <HASH>..<HASH> 100644 --- a/bika/lims/exportimport/setupdata/__init__.py +++ b/bika/lims/exportimport/setupdata/__init__.py @@ -590,6 +590,7 @@ class Client_Contacts(WorksheetImporter): except...
While importing setup data, reindex Contact object.
py
diff --git a/cohorts/plot.py b/cohorts/plot.py index <HASH>..<HASH> 100644 --- a/cohorts/plot.py +++ b/cohorts/plot.py @@ -29,7 +29,8 @@ def stripboxplot(x, y, data, ax=None, **kwargs): x=x, y=y, data=data, - ax=ax + ax=ax, + fliersize=0 ) return sb.stripplot...
remove flier from boxplot on stripboxplot
py
diff --git a/tests/test_middleware.py b/tests/test_middleware.py index <HASH>..<HASH> 100644 --- a/tests/test_middleware.py +++ b/tests/test_middleware.py @@ -37,4 +37,8 @@ class RequestHandler(TestCase): def setUp(self): self.m = Middleware() + def test_no_authorization_header(self): + r = _M...
There is now <I>% code coverage.
py
diff --git a/bika/lims/tests/test_limitdetections.py b/bika/lims/tests/test_limitdetections.py index <HASH>..<HASH> 100644 --- a/bika/lims/tests/test_limitdetections.py +++ b/bika/lims/tests/test_limitdetections.py @@ -32,6 +32,7 @@ class TestLimitDetections(BikaFunctionalTestCase): {'min': '0.0', ...
Take into account the new functionality in the previous test
py
diff --git a/blimpy/waterfall.py b/blimpy/waterfall.py index <HASH>..<HASH> 100755 --- a/blimpy/waterfall.py +++ b/blimpy/waterfall.py @@ -138,13 +138,17 @@ class Waterfall(Filterbank): self.__load_data() elif header_dict is not None and data_array is not None: - self.gen_from_header(...
Follow-up on removal of gen_from_header. Not sure we still need / use this functionality (generation of a filterbank file from a header and data blob), perhaps it could be removed in the future. Former-commit-id: a<I>b<I>d7bc4c8ae<I>ac4c9b<I>c7ffa<I>bf
py
diff --git a/stempeg/read.py b/stempeg/read.py index <HASH>..<HASH> 100644 --- a/stempeg/read.py +++ b/stempeg/read.py @@ -44,7 +44,7 @@ def read_info( ] out = sp.check_output(cmd) - info = json.loads(out) + info = json.loads(out.decode('ascii')) return info
add ascii decoding, just in case
py
diff --git a/kuyruk/worker.py b/kuyruk/worker.py index <HASH>..<HASH> 100644 --- a/kuyruk/worker.py +++ b/kuyruk/worker.py @@ -123,7 +123,7 @@ class Worker(object): break try: - ch.connection.send_heartbeat() + ch.connection.heartbeat_tick() ...
use Connection.heartbeat_tick instead of Connection.send_heartbeat
py
diff --git a/lib/svtplay_dl/service/viaplay.py b/lib/svtplay_dl/service/viaplay.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/service/viaplay.py +++ b/lib/svtplay_dl/service/viaplay.py @@ -47,19 +47,21 @@ class Viaplay(Service, OpenGraphThumbMixin): match = re.search('params":({.*}),"query', self.get_url...
viaplay: some cases there is no episode info, use the video id instead.
py
diff --git a/integration_tests/test_command_line_options.py b/integration_tests/test_command_line_options.py index <HASH>..<HASH> 100644 --- a/integration_tests/test_command_line_options.py +++ b/integration_tests/test_command_line_options.py @@ -121,6 +121,21 @@ class TestNoOptions: ], ) ...
:microscope: test the feature
py