diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/police_api/tests.py b/police_api/tests.py index <HASH>..<HASH> 100644 --- a/police_api/tests.py +++ b/police_api/tests.py @@ -95,16 +95,11 @@ class TestForce(PoliceAPITestCase): self.assertEqual(len(force.neighbourhoods), 0) def test_force_neighbourhoods_single(self): - neighbourhood...
Make the force neighbourhoods test a little more succinct.
py
diff --git a/pymc/sample.py b/pymc/sample.py index <HASH>..<HASH> 100644 --- a/pymc/sample.py +++ b/pymc/sample.py @@ -112,15 +112,13 @@ def iter_sample(draws, step, start=None, trace=None, tune=None, model=None, rand point = Point(start, model=model) - try: - for i in range(draws): - if (...
Removed try/except around sample loop.
py
diff --git a/py/h2o_import2.py b/py/h2o_import2.py index <HASH>..<HASH> 100644 --- a/py/h2o_import2.py +++ b/py/h2o_import2.py @@ -54,8 +54,15 @@ def find_folder_and_filename(bucket, pathWithRegex, schema=None, returnFullPath= username = getpass.getuser() h2oUsername = h2o.nodes[0].username h...
don't look for 'datasets' bucket in home dir of users first..want the datasets that was git pulled, assume that you find it like find_dataset used to (that bucket name only, since not unique enough)
py
diff --git a/iarm/arm_instructions/_meta.py b/iarm/arm_instructions/_meta.py index <HASH>..<HASH> 100644 --- a/iarm/arm_instructions/_meta.py +++ b/iarm/arm_instructions/_meta.py @@ -411,7 +411,7 @@ class _Meta(iarm.cpu.RegisterCpu): return True if (self.register['APSR'] & (1 << 28)) else False def rule...
rule_label_exists had an `or` comparison when it should have had a `and`
py
diff --git a/chess/__init__.py b/chess/__init__.py index <HASH>..<HASH> 100644 --- a/chess/__init__.py +++ b/chess/__init__.py @@ -288,19 +288,8 @@ def _sliding_attacks(square, occupied, deltas): BB_KNIGHT_ATTACKS = [_sliding_attacks(sq, BB_ALL, [17, 15, 10, 6, -17, -15, -10, -6]) for sq in SQUARES] BB_KING_ATTACKS...
Code golf BB_PAWN_ATTACKS
py
diff --git a/documenteer/sphinxconfig/stackconf.py b/documenteer/sphinxconfig/stackconf.py index <HASH>..<HASH> 100644 --- a/documenteer/sphinxconfig/stackconf.py +++ b/documenteer/sphinxconfig/stackconf.py @@ -141,7 +141,7 @@ def build_package_configs(project_name, copyright, version, # This is added to the end o...
Remove unexpected indentation from rst_epilog The indentation was causing the rst_epilog content to look as if it was part of a directive on the page itself.
py
diff --git a/latools/helpers/helpers.py b/latools/helpers/helpers.py index <HASH>..<HASH> 100644 --- a/latools/helpers/helpers.py +++ b/latools/helpers/helpers.py @@ -41,10 +41,12 @@ def get_date(datetime, time_format=None): String describing the datetime format. If missing uses dateutil.parser to gue...
get_date does nothing if input is already a data
py
diff --git a/tacl/constants.py b/tacl/constants.py index <HASH>..<HASH> 100644 --- a/tacl/constants.py +++ b/tacl/constants.py @@ -257,6 +257,9 @@ JOIN_WORKS_EPILOG = '''\ T0006 and not T0006.xml or path/to/corpus/T0006. The same is true for the output work name. + The joined work is output within the sp...
Clarified that join-works outputs the joined work in the user-supplied corpus.
py
diff --git a/institutions/fields/bd1xx.py b/institutions/fields/bd1xx.py index <HASH>..<HASH> 100644 --- a/institutions/fields/bd1xx.py +++ b/institutions/fields/bd1xx.py @@ -27,7 +27,7 @@ from __future__ import absolute_import, division, print_function from dojson import utils from ..model import institutions -fro...
dojson: fix field_activity in institutions
py
diff --git a/src/sos/step_executor.py b/src/sos/step_executor.py index <HASH>..<HASH> 100755 --- a/src/sos/step_executor.py +++ b/src/sos/step_executor.py @@ -239,6 +239,11 @@ def analyze_section(section, default_input=None): # finally, tasks.. if section.task: signature_vars |= accessed_vars(section...
Produce an error if produced output does not match output specified by provides vatlab/sos-docs#<I>
py
diff --git a/pmxbot/stack.py b/pmxbot/stack.py index <HASH>..<HASH> 100644 --- a/pmxbot/stack.py +++ b/pmxbot/stack.py @@ -290,6 +290,11 @@ def output(indexed_items, default="(empty)", pop=False): return joined_output or default +def _items_for_command(cmd, topic): + topics = cmd in 'topics list'.split() + ...
Extract _items_for_command
py
diff --git a/pdb.py b/pdb.py index <HASH>..<HASH> 100644 --- a/pdb.py +++ b/pdb.py @@ -77,6 +77,7 @@ class DefaultConfig: completekey = 'tab' highlight = True bg = 'dark' + use_pygments = True colorscheme = None editor = '${EDITOR:-vi}' # use $EDITOR if set, else default to vi stdin_pas...
Add an option to ignore pygments even if it is installed. I personally prefer my source code to be that way :-)
py
diff --git a/beprof/curve.py b/beprof/curve.py index <HASH>..<HASH> 100644 --- a/beprof/curve.py +++ b/beprof/curve.py @@ -168,7 +168,7 @@ class Curve(np.ndarray): y = np.interp(arg, self.x, self.y, left=defval, right=defval) return y - def subtract(self, curve2, newobj=False,): + def subtract...
Removed comma in subtract() declaration What changed nothing in fact but it was unecessary
py
diff --git a/rllib/agents/ppo/ppo.py b/rllib/agents/ppo/ppo.py index <HASH>..<HASH> 100644 --- a/rllib/agents/ppo/ppo.py +++ b/rllib/agents/ppo/ppo.py @@ -129,6 +129,8 @@ def warn_about_bad_reward_scales(trainer, result): def validate_config(config): if config["entropy_coeff"] < 0: raise DeprecationWarni...
[rllib] Validate that entropy coeff is not an integer (#<I>) * Validate that entropy coeff is not an integer Passing an integer value for entropy coeff such as 0 raises an error somewhere inside the TF policy graph, so this checks to make sure the entropy coeff is a float. * Cast to float instead Also move th...
py
diff --git a/salt/minion.py b/salt/minion.py index <HASH>..<HASH> 100644 --- a/salt/minion.py +++ b/salt/minion.py @@ -1760,6 +1760,7 @@ class Minion(MinionBase): self.socket.connect(self.master_pub) self.poller.register(self.socket, zmq.POLLIN) ...
Re-init modules on multi-master reconnect
py
diff --git a/art/art.py b/art/art.py index <HASH>..<HASH> 100644 --- a/art/art.py +++ b/art/art.py @@ -7,8 +7,8 @@ import random VERSION = "2.7" -SMALLTHRESHOLD = 80 -MEDIUMTHRESHOLD = 200 +SMALLTHRESHOLD = 60 +MEDIUMTHRESHOLD = 250 LARGETHRESHOLD = 500 DESCRIPTION = '''ASCII art is also known as "computer tex...
fix : minor edit in thresholds
py
diff --git a/codetransformer/core.py b/codetransformer/core.py index <HASH>..<HASH> 100644 --- a/codetransformer/core.py +++ b/codetransformer/core.py @@ -32,7 +32,7 @@ class CodeTransformer(object): ---------- code """ - __slots__ = '_optimize', '_code_stack' + __slots__ = '_code_stack', de...
ENH: Remove _optimize from CodeTransformer slots
py
diff --git a/beaver/redis_transport.py b/beaver/redis_transport.py index <HASH>..<HASH> 100644 --- a/beaver/redis_transport.py +++ b/beaver/redis_transport.py @@ -2,9 +2,9 @@ import datetime import redis import time import urlparse -import TransportException import beaver.transport +from beaver.transport import T...
Added logging on connection exception.
py
diff --git a/tests/integration/local/start_lambda/start_lambda_api_integ_base.py b/tests/integration/local/start_lambda/start_lambda_api_integ_base.py index <HASH>..<HASH> 100644 --- a/tests/integration/local/start_lambda/start_lambda_api_integ_base.py +++ b/tests/integration/local/start_lambda/start_lambda_api_integ_b...
fix: replace signaling with kill process (#<I>)
py
diff --git a/test/test_reads.py b/test/test_reads.py index <HASH>..<HASH> 100644 --- a/test/test_reads.py +++ b/test/test_reads.py @@ -658,7 +658,7 @@ class TestDNARead(TestCase): lowercase letters. The issue is described here: https://github.com/acorg/dark-matter/issues/662 """ - read...
Cleaned up test_reads.py
py
diff --git a/tests/pytests/scenarios/compat/test_with_versions.py b/tests/pytests/scenarios/compat/test_with_versions.py index <HASH>..<HASH> 100644 --- a/tests/pytests/scenarios/compat/test_with_versions.py +++ b/tests/pytests/scenarios/compat/test_with_versions.py @@ -39,7 +39,7 @@ ENV VIRTUAL_ENV={virtualenv_path} ...
Add <I>.x and <I>.x to the list of versions to test
py
diff --git a/treetime/gtr.py b/treetime/gtr.py index <HASH>..<HASH> 100644 --- a/treetime/gtr.py +++ b/treetime/gtr.py @@ -159,13 +159,23 @@ class GTR(object): def infer(cls, nij, Ti, root_state, pc=5.0, **kwargs): """ Infer a GTR model by specifying the number of transitions and time spent in ea...
added doc to infer_gtr
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -60,7 +60,7 @@ release = "1.0" # # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. -language = None +language = "en" ...
Set language to "en" for documentation
py
diff --git a/kubespawner/spawner.py b/kubespawner/spawner.py index <HASH>..<HASH> 100644 --- a/kubespawner/spawner.py +++ b/kubespawner/spawner.py @@ -1596,7 +1596,7 @@ class KubeSpawner(Spawner): if data is not None: if data["status"]["phase"] == 'Pending': return None - ...
Access containerStatuses key with get() There are some scenarios in which a pod will have a status value but not a containerStatuses value. This change prevents a KeyError in that case. Closes: #<I>
py
diff --git a/dockdev/dockdev.py b/dockdev/dockdev.py index <HASH>..<HASH> 100755 --- a/dockdev/dockdev.py +++ b/dockdev/dockdev.py @@ -3,6 +3,7 @@ import sys, subprocess, os, json, argparse, itertools, git, docker, docker.utils def get_docker(): kw = docker.utils.kwargs_from_env() + kw["version"] = "1.20" if ...
Set the docker API version to a baseline compatible with Docker <I>+ to avoid problems with docker-py having upgraded to <I> (docker <I>)
py
diff --git a/ayrton/__init__.py b/ayrton/__init__.py index <HASH>..<HASH> 100644 --- a/ayrton/__init__.py +++ b/ayrton/__init__.py @@ -27,7 +27,7 @@ log_format= "%(asctime)s %(name)16s:%(lineno)-4d (%(funcName)-21s) %(levelname)- date_format= "%H:%M:%S" # uncomment one of these for way too much debugging :) -loggin...
[*] once more, disable logs by default.
py
diff --git a/aiorun.py b/aiorun.py index <HASH>..<HASH> 100644 --- a/aiorun.py +++ b/aiorun.py @@ -24,7 +24,7 @@ from functools import partial __all__ = ['run', 'shutdown_waits_for'] -__version__ = '2019.3.1' +__version__ = '2019.4.1' logger = logging.getLogger('aiorun') WINDOWS = sys.platform == 'win32'
Bumped version to <I>
py
diff --git a/pepe/__init__.py b/pepe/__init__.py index <HASH>..<HASH> 100644 --- a/pepe/__init__.py +++ b/pepe/__init__.py @@ -161,7 +161,7 @@ def _evaluate(expression, defines): def preprocess(input_file, - output_file=sys.stdout, + output_file, defines={}, ...
No default output file in function and use byte reads/writes.
py
diff --git a/SkyPy/util.py b/SkyPy/util.py index <HASH>..<HASH> 100644 --- a/SkyPy/util.py +++ b/SkyPy/util.py @@ -219,8 +219,12 @@ class SkypeObj(object): The resulting string is an expression that should evaluate to a similar object, minus Skype connection. """ - reprs = ", ".join("{0}={1}"...
SkypeObj repr only prints modified properties
py
diff --git a/tests/clients/test_local.py b/tests/clients/test_local.py index <HASH>..<HASH> 100644 --- a/tests/clients/test_local.py +++ b/tests/clients/test_local.py @@ -278,6 +278,10 @@ class TestLocalSyncClient(object): local_client.set_index_local_timestamp('foo', 123456) assert local_client.get_i...
test for set index local timestamp when key does not exist
py
diff --git a/pysat/_meta.py b/pysat/_meta.py index <HASH>..<HASH> 100644 --- a/pysat/_meta.py +++ b/pysat/_meta.py @@ -204,11 +204,10 @@ class Meta(object): pysat Instrument object. """ - import string if metadata is not None: if isinstance(metadata, Data...
Updated for python 2/3 compatibility.
py
diff --git a/tohu/v4/derived_generators.py b/tohu/v4/derived_generators.py index <HASH>..<HASH> 100644 --- a/tohu/v4/derived_generators.py +++ b/tohu/v4/derived_generators.py @@ -188,6 +188,9 @@ class fstr(Apply): super().__init__(format_items, **gens) + def spawn(self): + raise NotImplemented("T...
Be cautious about spawning fstr instances for now
py
diff --git a/uflash.py b/uflash.py index <HASH>..<HASH> 100755 --- a/uflash.py +++ b/uflash.py @@ -337,8 +337,9 @@ def flash(path_to_python=None, paths_to_microbits=None, else: hex_path = os.path.join(path, 'micropython.hex') if path_to_python: - print('Flashing...
Fix double printing message Properly wrapped message prints in conditionals to avoid double printing.
py
diff --git a/pypot/creatures/__init__.py b/pypot/creatures/__init__.py index <HASH>..<HASH> 100644 --- a/pypot/creatures/__init__.py +++ b/pypot/creatures/__init__.py @@ -7,7 +7,7 @@ module = sys.modules[__name__] installed_poppy_creatures = {} # Feel free to make a pull request to add your own creature here -exist...
Rename poppy-4dof-arm-mini to poppy-ergo-starter
py
diff --git a/namesilo.py b/namesilo.py index <HASH>..<HASH> 100644 --- a/namesilo.py +++ b/namesilo.py @@ -259,7 +259,7 @@ NAMESILO_ERRORS = { class NameSilo(object): - LIVE_BASE_URL = ' https://www.namesilo.com/api/' + LIVE_BASE_URL = 'https://www.namesilo.com/api/' SANDBOX_BASE_URL = 'http://sandbox.n...
space in URI prevented module from working
py
diff --git a/spyderlib/plugins/inspector.py b/spyderlib/plugins/inspector.py index <HASH>..<HASH> 100644 --- a/spyderlib/plugins/inspector.py +++ b/spyderlib/plugins/inspector.py @@ -395,9 +395,10 @@ class ObjectInspector(RichAndPlainText): html_text = sphinxify(doc_text) else: ...
Inspector will ignore unknown objects in rich text too (following commit <I>ee6f<I>bb)
py
diff --git a/tests/integration/ssh/test_mine.py b/tests/integration/ssh/test_mine.py index <HASH>..<HASH> 100644 --- a/tests/integration/ssh/test_mine.py +++ b/tests/integration/ssh/test_mine.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import absolute_import, print_function, unicode_literals - import ...
Drop Py2 and six on tests/integration/ssh/test_mine.py
py
diff --git a/hamlpy/elements.py b/hamlpy/elements.py index <HASH>..<HASH> 100644 --- a/hamlpy/elements.py +++ b/hamlpy/elements.py @@ -4,13 +4,13 @@ import re class Element(object): """contains the pieces of an element and can populate itself from haml element text""" - self_closing_tags = ('meta', 'img'...
adding hyphens to the CSS selector regex
py
diff --git a/example.py b/example.py index <HASH>..<HASH> 100644 --- a/example.py +++ b/example.py @@ -14,7 +14,7 @@ login_page = browser.get("https://github.com/login") # login_page.soup is a BeautifulSoup object http://www.crummy.com/software/BeautifulSoup/bs4/doc/#beautifulsoup # we grab the login form -login_f...
Update example.py Simplify example.
py
diff --git a/any_urlfield/forms/fields.py b/any_urlfield/forms/fields.py index <HASH>..<HASH> 100644 --- a/any_urlfield/forms/fields.py +++ b/any_urlfield/forms/fields.py @@ -53,6 +53,7 @@ class AnyUrlField(forms.MultiValueField): # Instantiate widget. Is not done by parent at all. widget = self.widge...
Fixed Django <I> error on receiving empty_value from model field
py
diff --git a/traffic/core/traffic.py b/traffic/core/traffic.py index <HASH>..<HASH> 100644 --- a/traffic/core/traffic.py +++ b/traffic/core/traffic.py @@ -101,9 +101,9 @@ class Traffic(DataFrameMixin, GeographyMixin): # if no such index as flight_id or no flight_id column try: value16 = i...
performance on __getitem__
py
diff --git a/parsl/executors/high_throughput/executor.py b/parsl/executors/high_throughput/executor.py index <HASH>..<HASH> 100644 --- a/parsl/executors/high_throughput/executor.py +++ b/parsl/executors/high_throughput/executor.py @@ -507,7 +507,11 @@ class HighThroughputExecutor(ParslExecutor, RepresentationMixin): ...
Prevent htex logs from becoming huge when sending blobs as arguments. (#<I>) * limit repr length in debug * only calculate args_to_print for >= DEBUG * logger not logging
py
diff --git a/util.py b/util.py index <HASH>..<HASH> 100644 --- a/util.py +++ b/util.py @@ -287,7 +287,8 @@ def get_real_user(config_dict): return username # Returns the config dict -def parse_args(config_dict=shutit_global.config_dict): +def parse_args(): + config_dict = shutit_global.config_dict config_dict['ho...
No need for this to be an argument
py
diff --git a/test/test_project.py b/test/test_project.py index <HASH>..<HASH> 100644 --- a/test/test_project.py +++ b/test/test_project.py @@ -18,9 +18,16 @@ except ImportError: import urllib.parse as urlparse try: - basestring + basestring # attempt to evaluate basestring + def is_str(s): + re...
Handle str vs bytes for basestring
py
diff --git a/pyperclip/__init__.py b/pyperclip/__init__.py index <HASH>..<HASH> 100644 --- a/pyperclip/__init__.py +++ b/pyperclip/__init__.py @@ -208,8 +208,8 @@ def setFunctions(functionSet): stdout=PIPE, stderr=PIPE) == 0 assert xselExists, 'The xsel command could not be found.' elif f...
Correction: klipper setting should use klipper functions, not xsel functions. That was dumb.
py
diff --git a/parsl/tests/test_python_apps/test_join.py b/parsl/tests/test_python_apps/test_join.py index <HASH>..<HASH> 100644 --- a/parsl/tests/test_python_apps/test_join.py +++ b/parsl/tests/test_python_apps/test_join.py @@ -30,7 +30,7 @@ def add_one(n): @python_app def combine(*args): """Wait for an arbitrary...
Test combine() pattern in joinapps (#<I>) Most of the test code for this was already defined, but it was not actually used in a test. The combine() pattern is the way joinapps can wait for several tasks to complete, rather than one.
py
diff --git a/OperationItem.py b/OperationItem.py index <HASH>..<HASH> 100644 --- a/OperationItem.py +++ b/OperationItem.py @@ -136,7 +136,7 @@ class OperationItem(Storage.StorageBase): if self.operation: return DataItem.CalibrationItem(calibration=self.operation.get_processed_intensity_calibration...
Fix bug in default operation intensity calibration handling. svn r<I>
py
diff --git a/odl/operator/fn_ops.py b/odl/operator/fn_ops.py index <HASH>..<HASH> 100644 --- a/odl/operator/fn_ops.py +++ b/odl/operator/fn_ops.py @@ -419,7 +419,7 @@ class FlatteningOperatorAdjoint(Operator): General usage example: >>> X = odl.uniform_discr(min_pt=[-1, -1], max_pt=[1, 1], shape=[1,...
Update name EmbeddingOperator to FlatteningOperatorAdjoint
py
diff --git a/pupa/cli/commands/update.py b/pupa/cli/commands/update.py index <HASH>..<HASH> 100644 --- a/pupa/cli/commands/update.py +++ b/pupa/cli/commands/update.py @@ -72,9 +72,14 @@ class Command(BaseCommand): # We're looking at the imported Jurisdiction. continue ...
Check for Classification on Jurisdictions More work on #<I>
py
diff --git a/troposphere/constants.py b/troposphere/constants.py index <HASH>..<HASH> 100644 --- a/troposphere/constants.py +++ b/troposphere/constants.py @@ -64,6 +64,7 @@ SMTP_PORT_587 = 587 HTTP_PORT = 80 HTTPS_PORT = 443 REDIS_PORT = 6379 +MEMCACHED_PORT = 11211 POSTGRESQL_PORT = 5432 # @@ -74,6 +75,12 @@ T2...
Add M4 instances and Memcached port
py
diff --git a/raiden/network/pathfinding.py b/raiden/network/pathfinding.py index <HASH>..<HASH> 100644 --- a/raiden/network/pathfinding.py +++ b/raiden/network/pathfinding.py @@ -253,7 +253,7 @@ def configure_pfs_or_exit( ) if maybe_pfs_url is None: raise RaidenError( - "No...
Update raiden/network/pathfinding.py
py
diff --git a/katcp/resource.py b/katcp/resource.py index <HASH>..<HASH> 100644 --- a/katcp/resource.py +++ b/katcp/resource.py @@ -712,9 +712,9 @@ class KATCPSensor(object): for listener,use_reading in self._listeners.values(): try: if use_reading: - listener(se...
Update listener to align with previous footprint
py
diff --git a/pythran/toolchain.py b/pythran/toolchain.py index <HASH>..<HASH> 100644 --- a/pythran/toolchain.py +++ b/pythran/toolchain.py @@ -310,12 +310,17 @@ def compile_pythranfile(file_path, module_so=None, module_name=None, Returns the generated .so (or .cpp if `cpponly` is set to true). ''' - # de...
Fix bad module naming when using custom output, again This mostly reverts commit d0f<I>c2a<I>ad<I>bab<I>bc2dd1c<I>b4 and fixes the issue described.
py
diff --git a/tests/spark_config_test.py b/tests/spark_config_test.py index <HASH>..<HASH> 100644 --- a/tests/spark_config_test.py +++ b/tests/spark_config_test.py @@ -1305,13 +1305,13 @@ def test_get_signalfx_url(): 'spark.executorEnv.PAASTA_INSTANCE': 'test-instance', } assert spark_config.get_signa...
Update signalfx link to use y/spark-metrics
py
diff --git a/tofu/version.py b/tofu/version.py index <HASH>..<HASH> 100644 --- a/tofu/version.py +++ b/tofu/version.py @@ -1,2 +1,2 @@ # Do not edit, pipeline versioning governed by git tags! -__version__ = '1.4.3b4-44-g38061c12' \ No newline at end of file +__version__ = '1.4.3b4-44-g38061c12'
Added new line at end of file
py
diff --git a/tests/test_features.py b/tests/test_features.py index <HASH>..<HASH> 100644 --- a/tests/test_features.py +++ b/tests/test_features.py @@ -255,3 +255,12 @@ def test_read_ann_beats_old_jams(): times, frames = pcp.read_ann_beats() assert times is None assert frames is None + + +@raises(FeatureT...
More testing for annotated beats not found Former-commit-id: <I>ff<I>cefa<I>dc<I>a<I>f<I>fccd2dae Former-commit-id: 7f8bdb2ebe<I>f<I>bed<I>c<I>e<I>ac<I>
py
diff --git a/detect_secrets/core/baseline.py b/detect_secrets/core/baseline.py index <HASH>..<HASH> 100644 --- a/detect_secrets/core/baseline.py +++ b/detect_secrets/core/baseline.py @@ -223,7 +223,7 @@ def format_baseline_for_output(baseline): indent=2, sort_keys=True, separators=(',', ': ')...
Add a trailing \n to format_baseline_for_output, to prevent hookid: end-of-file-fixer from flagging it
py
diff --git a/holoviews/plotting/element.py b/holoviews/plotting/element.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/element.py +++ b/holoviews/plotting/element.py @@ -236,7 +236,8 @@ class ElementPlot(Plot): subplots = list(self.subplots.values()) if self.subplots else [] if self.zorder ==...
Another fix to axis formatting suppression in plotting
py
diff --git a/carto/paginators.py b/carto/paginators.py index <HASH>..<HASH> 100644 --- a/carto/paginators.py +++ b/carto/paginators.py @@ -34,7 +34,8 @@ class CartoPaginator(Paginator): def process_response(self, response): response_json = response.json() - self.total_count += len(response_json[s...
Fix count when the attribute is not in the response
py
diff --git a/alignak/borg.py b/alignak/borg.py index <HASH>..<HASH> 100644 --- a/alignak/borg.py +++ b/alignak/borg.py @@ -43,10 +43,15 @@ # # You should have received a copy of the GNU Affero General Public License # along with Shinken. If not, see <http://www.gnu.org/licenses/>. +"""Borg module provides Borg cl...
Enh: Pylint - Docstring in borg.py
py
diff --git a/pkg/buildbot_pkg.py b/pkg/buildbot_pkg.py index <HASH>..<HASH> 100644 --- a/pkg/buildbot_pkg.py +++ b/pkg/buildbot_pkg.py @@ -138,7 +138,7 @@ class BuildJsCommand(distutils.cmd.Command): assert npm_version != "", "need nodejs and npm installed in current PATH" assert LooseVersion(...
code reformat (leading spaces removed)
py
diff --git a/setuptools/tests/test_distutils_adoption.py b/setuptools/tests/test_distutils_adoption.py index <HASH>..<HASH> 100644 --- a/setuptools/tests/test_distutils_adoption.py +++ b/setuptools/tests/test_distutils_adoption.py @@ -1,7 +1,18 @@ import os +import sys +import functools + import pytest +def popen...
Support Python <I> and <I> in the tests.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,8 @@ setup( author_email='python-zillow@googlegroups.com', license='Apache License 2.0', url='https://github.com/seme0021/python-zillow', - keywords='zillow api', + download_url='https://github.c...
getting setup.py ready for pypi
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( version='0.1.2', description='Compare string distances between dates, timestamps, or datetime objects.', packages=['datetime_distance'], - install_requires=['python-dateutil', + install...
Pin version of python-dateutil
py
diff --git a/tests/test_main.py b/tests/test_main.py index <HASH>..<HASH> 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -41,7 +41,9 @@ class TestMain: old_stdout = sys.stdout old_stderr = sys.stderr - if stdin is not None: + if stdin is Non...
test: Always set sys.stdin in TestMain.run_scuba() pytest sets sys.stdin to a DontReadFromInput instance which raises an UnsupportedOperation() if fileno() is called. So we hook up our own stdin object which overrides that behavior.
py
diff --git a/djangodblog/middleware.py b/djangodblog/middleware.py index <HASH>..<HASH> 100644 --- a/djangodblog/middleware.py +++ b/djangodblog/middleware.py @@ -6,6 +6,8 @@ import md5 from django.conf import settings from django.http import Http404 +from djangodblog.models import Error, ErrorBatch + __all__ = ('...
patch for #6: middleware fails to import
py
diff --git a/anyconfig/backend/tests/toml.py b/anyconfig/backend/tests/toml.py index <HASH>..<HASH> 100644 --- a/anyconfig/backend/tests/toml.py +++ b/anyconfig/backend/tests/toml.py @@ -18,7 +18,7 @@ CNF_S = """title = "TOML Example" [owner] name = "Tom Preston-Werner" -dob = 1979-05-27T07:32:00-08:00 # First clas...
fix: try to make offset-aware datetime object in test cases
py
diff --git a/python/vaex/dataset.py b/python/vaex/dataset.py index <HASH>..<HASH> 100644 --- a/python/vaex/dataset.py +++ b/python/vaex/dataset.py @@ -2123,10 +2123,11 @@ class HansMemoryMapped(DatasetMemoryMapped): @classmethod def can_open(cls, path, *args, **kwargs): + return os.path.splitext(path)[-1] == ...
also recognize hans' format with just ending in .bin
py
diff --git a/tests/utils/helpers.py b/tests/utils/helpers.py index <HASH>..<HASH> 100644 --- a/tests/utils/helpers.py +++ b/tests/utils/helpers.py @@ -910,3 +910,31 @@ def random_location_generator(min_x=-180, max_x=180, min_y=-90, max_y=90): return shapely.geometry.Point( (min_x + random.random() * (max_...
tests/utils/helpers: Added `MultiMock` class to help handle multiple mock objects. Former-commit-id: 1d<I>e3da<I>bc0e3f<I>d<I>b7e5a<I>fb5d<I>
py
diff --git a/src/lewis/core/utils.py b/src/lewis/core/utils.py index <HASH>..<HASH> 100644 --- a/src/lewis/core/utils.py +++ b/src/lewis/core/utils.py @@ -67,7 +67,7 @@ def get_submodules(module): try: submodules[module_name] = importlib.import_module( '.{}...
Added missing exception variable passed to log message
py
diff --git a/ethereum/processblock.py b/ethereum/processblock.py index <HASH>..<HASH> 100644 --- a/ethereum/processblock.py +++ b/ethereum/processblock.py @@ -146,7 +146,6 @@ def apply_transaction(block, tx): return '%r: %r actual:%r target:%r' % (tx, what, actual, target) intrinsic_gas = tx.intrinsic_g...
Removed a few unneeded print statements
py
diff --git a/yabt/buildfile_parser_test.py b/yabt/buildfile_parser_test.py index <HASH>..<HASH> 100644 --- a/yabt/buildfile_parser_test.py +++ b/yabt/buildfile_parser_test.py @@ -22,11 +22,14 @@ yabt buildfile parser tests """ from os.path import join +import re import pytest from .buildcontext import BuildCo...
Fix escaping to work on windiws in py<I> (copied from other branch)
py
diff --git a/sos/jupyter/converter.py b/sos/jupyter/converter.py index <HASH>..<HASH> 100755 --- a/sos/jupyter/converter.py +++ b/sos/jupyter/converter.py @@ -365,14 +365,16 @@ def get_notebook_to_html_parser(): command "jupyter nbconvert --to html" so please refer to nbconvert manual for available op...
Do not use sos as default because that makes it difficult to use system default. Option --template sos is required to use this template.
py
diff --git a/slave/buildslave/scripts/runner.py b/slave/buildslave/scripts/runner.py index <HASH>..<HASH> 100644 --- a/slave/buildslave/scripts/runner.py +++ b/slave/buildslave/scripts/runner.py @@ -317,10 +317,10 @@ class SlaveOptions(MakerBase): "controls permissions of generated files. Use --umask=022 to b...
Change log rotation to be bounded.
py
diff --git a/spacy/lang/en/stop_words.py b/spacy/lang/en/stop_words.py index <HASH>..<HASH> 100644 --- a/spacy/lang/en/stop_words.py +++ b/spacy/lang/en/stop_words.py @@ -39,7 +39,7 @@ made make many may me meanwhile might mine more moreover most mostly move much must my myself name namely neither never nevertheles...
added contractions to stopwords #<I>
py
diff --git a/zarr/storage.py b/zarr/storage.py index <HASH>..<HASH> 100644 --- a/zarr/storage.py +++ b/zarr/storage.py @@ -778,7 +778,7 @@ class DirectoryStore(MutableMapping): finally: # clean up if temp file still exists for whatever reason - if temp_path is not None and os.path.exi...
Skip coverage of temp file cleanup In the ideal case, this cleanup step never happens on CI as the file got moved into place and so no longer exists at the old location. Given this, we ignore coverage on this line.
py
diff --git a/salt/utils/__init__.py b/salt/utils/__init__.py index <HASH>..<HASH> 100644 --- a/salt/utils/__init__.py +++ b/salt/utils/__init__.py @@ -659,7 +659,11 @@ def format_call(fun, data): if arg in kwargs: ret['args'].append(kwargs[arg]) else: - ret['args'].append(data[...
Catch case where format_call stack traces and the trace is safe
py
diff --git a/asammdf/blocks/v4_blocks.py b/asammdf/blocks/v4_blocks.py index <HASH>..<HASH> 100644 --- a/asammdf/blocks/v4_blocks.py +++ b/asammdf/blocks/v4_blocks.py @@ -1590,7 +1590,6 @@ class ChannelGroup: "acq_name", "acq_source", "comment", - "name", "id", "reser...
remove unwanted name attribute in v4_blocks.ChannelGroup
py
diff --git a/easytrader/clienttrader.py b/easytrader/clienttrader.py index <HASH>..<HASH> 100644 --- a/easytrader/clienttrader.py +++ b/easytrader/clienttrader.py @@ -216,7 +216,10 @@ class ClientTrader(IClientTrader): for i, text in enumerate(selects.texts()): # skip 0 index, because 0 index is c...
bugfix: set params on market sell/buy when ttype
py
diff --git a/usersettings/models.py b/usersettings/models.py index <HASH>..<HASH> 100644 --- a/usersettings/models.py +++ b/usersettings/models.py @@ -2,11 +2,15 @@ from django.db import models from django.conf import settings from django.db.models.signals import pre_save, pre_delete -from django.utils.encoding impo...
Makes the project compatible with Python 3
py
diff --git a/ocrmypdf/main.py b/ocrmypdf/main.py index <HASH>..<HASH> 100755 --- a/ocrmypdf/main.py +++ b/ocrmypdf/main.py @@ -388,6 +388,38 @@ def cleanup_working_files(*args): @transform( input=options.input_file, + filter=formatter('(?i)'), + output=os.path.join(work_folder, '{basename[0]}.pdf'), + ...
ocrmyimage - Attempt conversion to PDF if input file is not a PDF First cut. May have broken ruffus errors again too.
py
diff --git a/sonnet/python/modules/conv.py b/sonnet/python/modules/conv.py index <HASH>..<HASH> 100644 --- a/sonnet/python/modules/conv.py +++ b/sonnet/python/modules/conv.py @@ -30,6 +30,7 @@ import numbers # Dependency imports import numpy as np +import six from sonnet.python.modules import base from sonnet.pyt...
Allowing Conv2D to accept unicode, in addition to str. PiperOrigin-RevId: <I>
py
diff --git a/osmnx/pois.py b/osmnx/pois.py index <HASH>..<HASH> 100644 --- a/osmnx/pois.py +++ b/osmnx/pois.py @@ -439,7 +439,7 @@ def pois_from_address(address, distance, amenities=None): return pois_from_point(point=point, amenities=amenities, distance=distance) -def pois_from_polygon(polygon, amenities=None...
pois_from_polygon now passes custom_settings.
py
diff --git a/grimoire/elk/phabricator.py b/grimoire/elk/phabricator.py index <HASH>..<HASH> 100644 --- a/grimoire/elk/phabricator.py +++ b/grimoire/elk/phabricator.py @@ -309,6 +309,8 @@ class PhabricatorEnrich(Enrich): eitem['time_to_close_days'] = \ get_time_diff_days(eitem['creation_dat...
[enrich][phab] Add time_open_days_enrich to have open days without painless also to filtering with it
py
diff --git a/openquake/hazardlib/geo/surface/base.py b/openquake/hazardlib/geo/surface/base.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/geo/surface/base.py +++ b/openquake/hazardlib/geo/surface/base.py @@ -429,19 +429,20 @@ class BaseQuadrilateralSurface(BaseSurface): def get_resampled_top_edge(self...
modify the description in base.py
py
diff --git a/test/test_parsy.py b/test/test_parsy.py index <HASH>..<HASH> 100644 --- a/test/test_parsy.py +++ b/test/test_parsy.py @@ -1,6 +1,6 @@ import unittest -from parsy import ParseError, digit, generate, letter, regex, seq, string +from parsy import ParseError, digit, generate, letter, regex, seq, string, lin...
Tests for line_info_at
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -16,6 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. import os +import sys from lettuce import version from setuptools ...
multiprocessing is only necessary on python < <I>
py
diff --git a/beetle/utils.py b/beetle/utils.py index <HASH>..<HASH> 100644 --- a/beetle/utils.py +++ b/beetle/utils.py @@ -2,10 +2,15 @@ import os def read_folder(folder, mode): + if 'b' in mode: + encoding = None + else: + encoding = 'utf-8' + for folder, __, files in os.walk(folder): ...
Define encoding when reading files if they aren't opened in binary mode
py
diff --git a/gutenberg/_util/os.py b/gutenberg/_util/os.py index <HASH>..<HASH> 100644 --- a/gutenberg/_util/os.py +++ b/gutenberg/_util/os.py @@ -2,6 +2,7 @@ from __future__ import absolute_import +from io import open import codecs import errno import os @@ -64,3 +65,21 @@ def determine_encoding(path, default=...
Add helper method to re-open a file with encoding
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,5 +22,5 @@ setup( py_modules=["SAM","utilities"], - install_requires=['pandas','numpy','scikit-learn','matplotlib','scipy'] + install_requires=['pandas','numpy','scikit-learn','matplotlib','scipy','annda...
added anndata and scanpy requirements
py
diff --git a/MAVProxy/modules/mavproxy_misseditor/missionEditorFrame.py b/MAVProxy/modules/mavproxy_misseditor/missionEditorFrame.py index <HASH>..<HASH> 100755 --- a/MAVProxy/modules/mavproxy_misseditor/missionEditorFrame.py +++ b/MAVProxy/modules/mavproxy_misseditor/missionEditorFrame.py @@ -1,5 +1,5 @@ #!/usr/bin/e...
misseditor: buffer encoding is case-sensitive
py
diff --git a/dynamic_dynamodb/core/table.py b/dynamic_dynamodb/core/table.py index <HASH>..<HASH> 100644 --- a/dynamic_dynamodb/core/table.py +++ b/dynamic_dynamodb/core/table.py @@ -285,8 +285,6 @@ def __ensure_provisioning_reads(table_name, key_name, num_consec_read_checks): # Increase needed due to high CU ...
Removed debugging log entries from core/table.py
py
diff --git a/you_get/downloader/dailymotion.py b/you_get/downloader/dailymotion.py index <HASH>..<HASH> 100644 --- a/you_get/downloader/dailymotion.py +++ b/you_get/downloader/dailymotion.py @@ -11,7 +11,10 @@ def dailymotion_download(url, output_dir = '.', merge = True, info_only = False) title = r1(r'meta proper...
Dailymotion: default to download the best quality; fix #<I>
py
diff --git a/tests/core/test_inventory.py b/tests/core/test_inventory.py index <HASH>..<HASH> 100644 --- a/tests/core/test_inventory.py +++ b/tests/core/test_inventory.py @@ -196,3 +196,11 @@ class Test(object): assert ( inventory.hosts["dev4.group_2"].data["my_var"] == "comes_from_dev4.group_2" ...
Add test for has_parent_group() (#<I>) The documentation states that the has_parent_group takes an object as its argument. Don't know if it would be better with just a string or if it's better the way it is now.
py
diff --git a/tickets/views.py b/tickets/views.py index <HASH>..<HASH> 100644 --- a/tickets/views.py +++ b/tickets/views.py @@ -50,4 +50,5 @@ class TicketCreateView(CreateView): ticket.creator = self.request.user ticket.save() self.success_url = reverse('tickets:detail', args=[ticket.id]) + ...
add ticket created success message to ticket create view
py
diff --git a/djstripe/middleware.py b/djstripe/middleware.py index <HASH>..<HASH> 100644 --- a/djstripe/middleware.py +++ b/djstripe/middleware.py @@ -66,7 +66,7 @@ class SubscriptionPaymentMiddleware(object): return True # Second we check against matches - match = resolve(request.path) +...
Fix conflicts with subdomains using django-hosts (multiple urlconf support) (#<I>)
py
diff --git a/utils.py b/utils.py index <HASH>..<HASH> 100644 --- a/utils.py +++ b/utils.py @@ -108,7 +108,7 @@ class HashStore: if file_name in self.hashes: if content_hash == self.hashes[file_name]: ret = False - else: + if ret: self.hashes[file_name] =...
bug fix, update content hash when the hash is different or does not exist
py
diff --git a/ncpol2sdpa/nc_utils.py b/ncpol2sdpa/nc_utils.py index <HASH>..<HASH> 100644 --- a/ncpol2sdpa/nc_utils.py +++ b/ncpol2sdpa/nc_utils.py @@ -62,6 +62,8 @@ def simplify_polynomial(polynomial, monomial_substitutions): def apply_substitutions(monomial, monomial_substitutions): """Helper function to remov...
fast substitution works if lhs is a polynomial
py
diff --git a/jupyter_notebook/widgets/widget_string.py b/jupyter_notebook/widgets/widget_string.py index <HASH>..<HASH> 100644 --- a/jupyter_notebook/widgets/widget_string.py +++ b/jupyter_notebook/widgets/widget_string.py @@ -55,7 +55,7 @@ class Text(_String): self._submission_callbacks = CallbackDispatcher()...
Add buffers argument to a widget custom message handler This change should have been made with the custom serialization changes a few weeks ago.
py
diff --git a/anyconfig/tests/common.py b/anyconfig/tests/common.py index <HASH>..<HASH> 100644 --- a/anyconfig/tests/common.py +++ b/anyconfig/tests/common.py @@ -38,7 +38,7 @@ class MaskedImportLoader(object): """ self.masked = modules - def find_module(self, fullname, path=None): + def find_...
fix a couple of pylint warnings, invalid-name and unused-arguments
py