diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/netmiko/base_connection.py b/netmiko/base_connection.py index <HASH>..<HASH> 100644 --- a/netmiko/base_connection.py +++ b/netmiko/base_connection.py @@ -381,7 +381,7 @@ class BaseConnection(object): delay_factor = self.select_delay_factor(delay_factor=0) main_delay = delay_factor * .1 ...
Set maximum amount of retry time to <I> seconds for attempting read_channel() in establish_connection()
py
diff --git a/meshcut.py b/meshcut.py index <HASH>..<HASH> 100644 --- a/meshcut.py +++ b/meshcut.py @@ -322,7 +322,6 @@ def merge_close_vertices(verts, faces, close_epsilon=1e-5): # Compute a mapping from old to new : for each input vert, store the index # of the new vert it will be merged into - close_ep...
Removed redefined close_epsilon
py
diff --git a/tests/test_misc.py b/tests/test_misc.py index <HASH>..<HASH> 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -63,6 +63,33 @@ def test_maxcall(): sampler.run_nested(dlogz_init=1, maxcall=1000, print_progress=printing) +def test_n_effective_deprecation(): + # test deprecation of n_eff...
add test for deprecation of n_effective and n_effective_init
py
diff --git a/facepy/graph_api.py b/facepy/graph_api.py index <HASH>..<HASH> 100755 --- a/facepy/graph_api.py +++ b/facepy/graph_api.py @@ -296,7 +296,7 @@ class GraphAPI(object): class HTTPError(FacepyError): """Exception for transport errors.""" -# Define the nested Exception in the module scope so the...
Changed the comment and added a newline to the end of the file.
py
diff --git a/cumulusci/robotframework/locators_50.py b/cumulusci/robotframework/locators_50.py index <HASH>..<HASH> 100644 --- a/cumulusci/robotframework/locators_50.py +++ b/cumulusci/robotframework/locators_50.py @@ -3,6 +3,12 @@ import copy lex_locators = copy.deepcopy(locators_49.lex_locators) +lex_locators["a...
Some pages apparently use different markup for action ribbon in Winter '<I> If a page uses the new style, `Go to record home` and a couple others would raise an exception because it was waiting for the old markup.
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -11,12 +11,13 @@ # # All configuration values have a default; values that are commented out # serve to show the default. - +import datetime import sys import os _ROOT = os.path.join(os.path.dirname(os.p...
Update doc conf date range and theme (refs #<I>)
py
diff --git a/src/hamster/edit_activity.py b/src/hamster/edit_activity.py index <HASH>..<HASH> 100644 --- a/src/hamster/edit_activity.py +++ b/src/hamster/edit_activity.py @@ -158,7 +158,10 @@ class CustomFactController(gobject.GObject): self.get_widget("save_button").set_sensitive(looks_good) def valida...
doc: more details in validate_fields
py
diff --git a/zappa/cli.py b/zappa/cli.py index <HASH>..<HASH> 100644 --- a/zappa/cli.py +++ b/zappa/cli.py @@ -53,7 +53,6 @@ CUSTOM_SETTINGS = [ 'delete_local_zip', 'delete_s3_zip', 'exclude', - 'http_methods', 'role_name', 'touch', ]
rm HTTP_METHODS
py
diff --git a/spinoff/util/async.py b/spinoff/util/async.py index <HASH>..<HASH> 100644 --- a/spinoff/util/async.py +++ b/spinoff/util/async.py @@ -4,7 +4,7 @@ import traceback import sys from twisted.python.failure import Failure -from twisted.internet.defer import inlineCallbacks, Deferred, CancelledError, Deferre...
Added deferred_with for using context managers with deferred-based code
py
diff --git a/ovp_core/emails.py b/ovp_core/emails.py index <HASH>..<HASH> 100644 --- a/ovp_core/emails.py +++ b/ovp_core/emails.py @@ -20,7 +20,7 @@ class BaseMail: """ This class is responsible for firing emails """ - from_email = '' + from_email = get_settings().get('DEFAULT_FROM_EMAIL', '') def __ini...
Fix from_email on basemail
py
diff --git a/src/python/dxpy/utils/describe.py b/src/python/dxpy/utils/describe.py index <HASH>..<HASH> 100644 --- a/src/python/dxpy/utils/describe.py +++ b/src/python/dxpy/utils/describe.py @@ -612,7 +612,10 @@ def print_execution_desc(desc): if "rootExecution" in desc: print_field("Root execution", desc...
Analyses now show originJob (which is, possibly, null).
py
diff --git a/__init__.py b/__init__.py index <HASH>..<HASH> 100644 --- a/__init__.py +++ b/__init__.py @@ -21,8 +21,10 @@ import sys # See: http://hg.python.org/cpython/rev/e12efebc3ba6/ # TODO: MOVE THIS ELSEWHERE! # TODO: Make this Python2.6 specific. -old_chflags = os.chflags +old_chflags = getattr(os, "chflags",...
Some machines don't have chflags...
py
diff --git a/buildbot/process/buildstep.py b/buildbot/process/buildstep.py index <HASH>..<HASH> 100644 --- a/buildbot/process/buildstep.py +++ b/buildbot/process/buildstep.py @@ -1012,7 +1012,17 @@ class LoggingBuildStep(BuildStep): all output being put into our self.stdio_log LogFile """ ...
Reduce verbosity in twistd.log on the try server. Remove the patch from the 'patch' argument when logging. from <URL>
py
diff --git a/tests/jobs.py b/tests/jobs.py index <HASH>..<HASH> 100644 --- a/tests/jobs.py +++ b/tests/jobs.py @@ -26,7 +26,7 @@ import six import sys from tempfile import mkdtemp -from airflow import AirflowException, settings +from airflow import AirflowException, settings, models from airflow.bin import cli fr...
[AIRFLOW-<I>] Restore import to fix broken tests The global `models` object is used in the code and was inadvertently removed. This PR restores it Closes #<I> from jlowin/fix-broken-tests
py
diff --git a/RL/operator/functional.py b/RL/operator/functional.py index <HASH>..<HASH> 100644 --- a/RL/operator/functional.py +++ b/RL/operator/functional.py @@ -111,29 +111,6 @@ class Functional(with_metaclass(ABCMeta, object)): str(self.domain) + '->' + str(self.range)) -class FunctionalComposit...
Removed FunctionalComposition (closes issue #2)
py
diff --git a/replace_doc_link.py b/replace_doc_link.py index <HASH>..<HASH> 100755 --- a/replace_doc_link.py +++ b/replace_doc_link.py @@ -30,7 +30,7 @@ if __name__ == '__main__': if filename in filename_dict: ans.append(line[pos:m.start()]) ans.append('[' + title + ']') - ...
replace doc link script should use site.url site.url is the variable defined in vitess.io/_config.yml which specifies the site url. The replace_doc_link should put the abs link (by concatenating site.url) instead of writing relative link. Relative link causes problem for some link, e.g. GettingStarted link in page you...
py
diff --git a/server.py b/server.py index <HASH>..<HASH> 100644 --- a/server.py +++ b/server.py @@ -79,7 +79,6 @@ class OpenIDServer(object): enc_dh_server_public = to_b64(long2a(dh_server_public)) dh_shared = pow(dh_cons_pub, dh_server_private, dh_modulus) - ...
[project @ now passing req to get_auth_range in checkid]
py
diff --git a/spyder/utils/dochelpers.py b/spyder/utils/dochelpers.py index <HASH>..<HASH> 100644 --- a/spyder/utils/dochelpers.py +++ b/spyder/utils/dochelpers.py @@ -306,7 +306,7 @@ def isdefined(obj, force_import=False, namespace=None): if base not in globals(): globals()[base] =...
Catch any error in the isdefined method of dochelpers.
py
diff --git a/discord/asset.py b/discord/asset.py index <HASH>..<HASH> 100644 --- a/discord/asset.py +++ b/discord/asset.py @@ -96,10 +96,12 @@ class Asset: return cls(state, url.format(id, hash, format, size, key=key)) def __str__(self): - return self._url + return self._url if self._url i...
Fix various bugs with Asset._url None handling.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ from setuptools import setup from distutils.core import Extension from sys import exit as sys_exit +import versioneer try: from Cython.Distutils import build_ext @@ -32,14 +33,17 @@ ext_dtram = Extensio...
amending setup.py for versioneer
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -59,21 +59,6 @@ if sys.platform == 'darwin': IncludeDirs = ['/sw/include'] LibraryDirs = ['/sw/lib'] -# Use the SSL_LIB and SSL_INC environment variables to extend -# the library and header directories we pass to t...
Delete some more stuff that I do not think is necessary
py
diff --git a/tests/test_using.py b/tests/test_using.py index <HASH>..<HASH> 100644 --- a/tests/test_using.py +++ b/tests/test_using.py @@ -249,6 +249,16 @@ class UsingFactoryTestCase(unittest.TestCase): test_object = TestObjectFactory.build() self.assertEqual(test_object.one, 'one') + def test_in...
Add test for dual class/factory inheritance. If it works properly, this would make pylint happy.
py
diff --git a/nipap-cli/nipap_cli/nipap_cli.py b/nipap-cli/nipap_cli/nipap_cli.py index <HASH>..<HASH> 100755 --- a/nipap-cli/nipap_cli/nipap_cli.py +++ b/nipap-cli/nipap_cli/nipap_cli.py @@ -423,6 +423,8 @@ def add_prefix(arg, opts): if parent.type == 'assignment': if p.type is None: ...
Don't override if type is correct Fixes #<I>.
py
diff --git a/instant/producers.py b/instant/producers.py index <HASH>..<HASH> 100644 --- a/instant/producers.py +++ b/instant/producers.py @@ -29,7 +29,7 @@ def broadcast_py(message, event_class="default", data={}, channel=None, site=SIT payload = {"message": message, "channel":channel, 'event_class':event_class, ...
Corrected issue #1: python 3 print compatibility
py
diff --git a/openpnm/io/iMorph.py b/openpnm/io/iMorph.py index <HASH>..<HASH> 100644 --- a/openpnm/io/iMorph.py +++ b/openpnm/io/iMorph.py @@ -1,7 +1,7 @@ import os as os import numpy as np import scipy as sp -from scipy.sparse import lil_matrix +import scipy.sparse from pathlib import Path from openpnm.utils impo...
changed import sparse [ci skip] so that it doesn't give warning of unsused attribute
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 @@ -363,7 +363,8 @@ def test_input_file_not_a_pdf(caplog, no_outpdf): input_file = __file__ # Try to OCR this file result = run_ocrmypdf_api(input_file, no_outpdf) assert re...
Don't expect filenames to be replicated on NT
py
diff --git a/telegram_send.py b/telegram_send.py index <HASH>..<HASH> 100644 --- a/telegram_send.py +++ b/telegram_send.py @@ -103,7 +103,7 @@ def main(): if args.pre: message = pre(message) for c in conf: - send(messages=[message], conf=conf, parse_mode=args.parse_mode, silent...
Fixed bug sending message from stdin (#<I>)
py
diff --git a/localshop/apps/packages/forms.py b/localshop/apps/packages/forms.py index <HASH>..<HASH> 100644 --- a/localshop/apps/packages/forms.py +++ b/localshop/apps/packages/forms.py @@ -27,7 +27,7 @@ class ReleaseFileForm(forms.ModelForm): def save(self, commit=True): obj = super(ReleaseFileForm, s...
Fixed bug in file upload handling introduced in <I>fd<I>ac<I>d<I>c7f<I>a<I>acc<I>ef.
py
diff --git a/cliff/app.py b/cliff/app.py index <HASH>..<HASH> 100644 --- a/cliff/app.py +++ b/cliff/app.py @@ -17,7 +17,7 @@ class App(object): NAME = os.path.splitext(os.path.basename(sys.argv[0]))[0] CONSOLE_MESSAGE_FORMAT = '%(message)s' - LOG_FILE_MESSAGE_FORMAT = '%(asctime)s %(levelname)s %(name)s ...
make the log messages slightly easier to parse
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from distutils.core import setup description = "A wrapper around Kenneth Reitz' tablib to work with Django models." -VERSION = '1.1.1' +VERSION = '1.2' setup( name='django-tablib',
upped version number to <I>
py
diff --git a/visidata/sheets.py b/visidata/sheets.py index <HASH>..<HASH> 100644 --- a/visidata/sheets.py +++ b/visidata/sheets.py @@ -400,8 +400,8 @@ class TableSheet(BaseSheet): @property def statusLine(self): 'String of row and column stats.' - rowinfo = 'row %d/%d (%d selected)' % (self.cu...
[show-cursor] remove nRows and nCols, total row count and total column count confusing with 0-indexing
py
diff --git a/src/sos/_version.py b/src/sos/_version.py index <HASH>..<HASH> 100644 --- a/src/sos/_version.py +++ b/src/sos/_version.py @@ -33,7 +33,7 @@ if _py_ver.major == 2 or (_py_ver.major == 3 and (_py_ver.minor, _py_ver.micro) # version of the SoS language __sos_version__ = '1.0' # version of the sos command ...
Release sos <I> as a workflow engine alone
py
diff --git a/dingo/core/__init__.py b/dingo/core/__init__.py index <HASH>..<HASH> 100644 --- a/dingo/core/__init__.py +++ b/dingo/core/__init__.py @@ -692,6 +692,16 @@ class NetworkDingo: for grid_district in self.mv_grid_districts(): grid_district.mv_grid.routing(debug, anim) + def connect_g...
add call method for connecting generators to NetworkDingo class
py
diff --git a/torchtext/datasets/translation.py b/torchtext/datasets/translation.py index <HASH>..<HASH> 100644 --- a/torchtext/datasets/translation.py +++ b/torchtext/datasets/translation.py @@ -31,7 +31,8 @@ class TranslationDataset(data.Dataset): src_path, trg_path = tuple(os.path.expanduser(path + x) for x ...
Swap open with io open in translation dataset (#<I>) * swap open with io open in translation dataset
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.\ setup( name="python-mpd", - version="0.2.0", + version="0.2.1", description="Python MPD client library", long_descri...
setup.py: incrementing version number to <I>
py
diff --git a/pydle/features/rfc1459/client.py b/pydle/features/rfc1459/client.py index <HASH>..<HASH> 100644 --- a/pydle/features/rfc1459/client.py +++ b/pydle/features/rfc1459/client.py @@ -320,8 +320,8 @@ class RFC1459Support(BasicClient): ## IRC helpers. - def normalize(self, s): - return parsing....
Also set registration completed on missing MOTD.
py
diff --git a/dallinger/utils.py b/dallinger/utils.py index <HASH>..<HASH> 100644 --- a/dallinger/utils.py +++ b/dallinger/utils.py @@ -464,12 +464,12 @@ def ensure_constraints_file_presence(directory: str): prev_cwd = os.getcwd() try: os.chdir(directory) - url = f"https://raw.githubusercontent...
Use dev-requirements.txt as constraint instead of requirements.txt as requirements when generating experiment constraints
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -181,7 +181,6 @@ When you run this it prints: "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", - "Programming Language :: Python :: 3.5", ...
remove Python <I> from support list (it is EOL)
py
diff --git a/src/hunter.py b/src/hunter.py index <HASH>..<HASH> 100644 --- a/src/hunter.py +++ b/src/hunter.py @@ -179,11 +179,17 @@ class Event(Fields.kind.function.module.filename): @_CachedProperty def module(self): - return self.frame.f_globals.get('__name__', '') + module = self.frame.f_g...
Fixup broken frames that have "None" for filename or module so that we can still treat them as strings.
py
diff --git a/host/analysis/analyze_raw_data.py b/host/analysis/analyze_raw_data.py index <HASH>..<HASH> 100644 --- a/host/analysis/analyze_raw_data.py +++ b/host/analysis/analyze_raw_data.py @@ -616,8 +616,10 @@ class AnalyzeRawData(object): out_file_h5 = tb.openFile(self._analyzed_data_file, mode="r") ...
ENH: better behavior when dots are within the filename string
py
diff --git a/python/ray/util/sgd/torch/training_operator.py b/python/ray/util/sgd/torch/training_operator.py index <HASH>..<HASH> 100644 --- a/python/ray/util/sgd/torch/training_operator.py +++ b/python/ray/util/sgd/torch/training_operator.py @@ -600,7 +600,7 @@ class TrainingOperator: with self.timers.record(...
[sgd] Use target label count as training batch size (#<I>)
py
diff --git a/python/setup.py b/python/setup.py index <HASH>..<HASH> 100644 --- a/python/setup.py +++ b/python/setup.py @@ -74,7 +74,7 @@ def config_cython(): setup(name='mxnet', version=__version__, description=open(os.path.join(CURRENT_DIR, 'README.md')).read(), - packages=find_packages(where=CURRE...
remove where= from find_packages() (#<I>)
py
diff --git a/bika/lims/browser/analyses.py b/bika/lims/browser/analyses.py index <HASH>..<HASH> 100644 --- a/bika/lims/browser/analyses.py +++ b/bika/lims/browser/analyses.py @@ -531,7 +531,18 @@ class AnalysesView(BikaListingView): can_set_instrument = service.getInstrumentEntryOfResults() \ ...
Fix #<I> Instruments for Analysis on AR (and WS) not set for the chosen Method If an instrument hasn't been already set to an analysis, show the default instrument for the analysis service if available for the selected method
py
diff --git a/tinyscript/helpers/decorators.py b/tinyscript/helpers/decorators.py index <HASH>..<HASH> 100644 --- a/tinyscript/helpers/decorators.py +++ b/tinyscript/helpers/decorators.py @@ -57,7 +57,7 @@ def try_or_die(message, exc=Exception, extra_info=""): method) """ def _try_or_d...
Minor fix regarding Travis CI testing (3)
py
diff --git a/lib/websession_templates.py b/lib/websession_templates.py index <HASH>..<HASH> 100644 --- a/lib/websession_templates.py +++ b/lib/websession_templates.py @@ -891,13 +891,13 @@ class Template: 'groups' : _("groups"), } if submitter: - out...
Use .py extension in links to Your Approvals and Your Submissions pages, as they were not migrated yet to the new URL schema.
py
diff --git a/karaage/applications/forms.py b/karaage/applications/forms.py index <HASH>..<HASH> 100644 --- a/karaage/applications/forms.py +++ b/karaage/applications/forms.py @@ -44,6 +44,7 @@ class StartApplicationForm(StartInviteApplicationForm): class ApplicantForm(forms.ModelForm): class Meta: model ...
Ensure SAML ID doesn't get set on new applications
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ import codecs try: from setuptools import setup, find_packages extra_setup = dict( - install_requires=['requests'], + install_requires=['requests', 'Jinja2>=2.9'], ) except ImportErr...
Add jinja2>=<I> as dependency Closes #<I>
py
diff --git a/tmuxp/testsuite/test_window.py b/tmuxp/testsuite/test_window.py index <HASH>..<HASH> 100644 --- a/tmuxp/testsuite/test_window.py +++ b/tmuxp/testsuite/test_window.py @@ -91,17 +91,13 @@ class NewTest2(TmuxTestCase): window = self.session.new_window(window_name='test', attach=True) self.as...
fix bad test with blank select_layout calls
py
diff --git a/andes/core/model.py b/andes/core/model.py index <HASH>..<HASH> 100644 --- a/andes/core/model.py +++ b/andes/core/model.py @@ -308,6 +308,23 @@ class ModelData: return out + def as_df_local(self): + """ + Export local variable values and services to a DataFrame. + """ + ...
Add `as_df_local` to export internal variable and service values.
py
diff --git a/cartoframes/core/managers/context_manager.py b/cartoframes/core/managers/context_manager.py index <HASH>..<HASH> 100644 --- a/cartoframes/core/managers/context_manager.py +++ b/cartoframes/core/managers/context_manager.py @@ -256,7 +256,7 @@ class ContextManager(object): COPY {table_name}({col...
Use dbname in copyfrom query
py
diff --git a/pyqode/core/frontend/widgets/interactive.py b/pyqode/core/frontend/widgets/interactive.py index <HASH>..<HASH> 100644 --- a/pyqode/core/frontend/widgets/interactive.py +++ b/pyqode/core/frontend/widgets/interactive.py @@ -3,6 +3,7 @@ This module contains interactive widgets: - interactive console: a ...
use locale encoding instead of hardcoded utf-8
py
diff --git a/patroni/postgresql.py b/patroni/postgresql.py index <HASH>..<HASH> 100644 --- a/patroni/postgresql.py +++ b/patroni/postgresql.py @@ -715,17 +715,12 @@ $$""".format(name, options), name, password, password) return ret def bootstrap(self): - """ - Failure during initdb alwa...
Remove the comment that is oudated since the bootstrap separation from the create replica.
py
diff --git a/runcommands/completion/__init__.py b/runcommands/completion/__init__.py index <HASH>..<HASH> 100644 --- a/runcommands/completion/__init__.py +++ b/runcommands/completion/__init__.py @@ -1,6 +1,7 @@ import glob import os import shlex +from contextlib import redirect_stderr from ..args import arg from...
Hide stderr when parsing args in complete command For example, if an option takes a value, we don't want argparse to show usage when completing.
py
diff --git a/autopep8.py b/autopep8.py index <HASH>..<HASH> 100755 --- a/autopep8.py +++ b/autopep8.py @@ -2302,9 +2302,11 @@ def main(): if args == ['-']: assert not options.in_place - output = LineEndingWrapper(sys.stdout) - output.write(fix_string(sys.stdin.read(), - ...
Remove unnecessary LineEndingWrapper in "-" case
py
diff --git a/cobe/irc.py b/cobe/irc.py index <HASH>..<HASH> 100644 --- a/cobe/irc.py +++ b/cobe/irc.py @@ -80,7 +80,7 @@ class Bot(irclib.SimpleIRCClient): text = msg # convert message to unicode - text = text.decode("utf-8") + text = text.decode("utf-8").strip() if not ...
strip() irc inputs before learning them This fixes an issue where cobe could reply with a leading space.
py
diff --git a/tests/test_tun.py b/tests/test_tun.py index <HASH>..<HASH> 100644 --- a/tests/test_tun.py +++ b/tests/test_tun.py @@ -1,15 +1,6 @@ -# import pytest -# import pytun import socket import time -import os -# import sliplib import string -# import struct -# import binascii -# import dpkt -# import subprocess...
Cleaned up test_tun.py Removed commented out imports and removed the os module since I also removed the ping test. This test was largely superseded by the remaining TUN tests.
py
diff --git a/pdf/modify/draw/image.py b/pdf/modify/draw/image.py index <HASH>..<HASH> 100644 --- a/pdf/modify/draw/image.py +++ b/pdf/modify/draw/image.py @@ -125,21 +125,16 @@ class DrawPIL: :param y: :return: X and Y values """ - if 'center' in str(x).lower(): - x = self._...
ADD calculator function to image_bound method
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -23,6 +23,7 @@ setup( "Topic :: Software Development :: Libraries :: Python Modules", ], + use_2to3 = True, long_description = """\ Iron.io common library ----------------------
modified: setup.py added distribute's 2to3 option for python 3 compatibility
py
diff --git a/extra_views/advanced.py b/extra_views/advanced.py index <HASH>..<HASH> 100644 --- a/extra_views/advanced.py +++ b/extra_views/advanced.py @@ -82,7 +82,7 @@ class ProcessFormWithInlinesView(FormView): form_class = self.get_form_class() form = self.get_form(form_class) inlines = se...
adding args and kwargs to ProcessFormWithInlinesView for better subclassing
py
diff --git a/tests/test_spec.py b/tests/test_spec.py index <HASH>..<HASH> 100644 --- a/tests/test_spec.py +++ b/tests/test_spec.py @@ -5,6 +5,7 @@ from __future__ import absolute_import from __future__ import unicode_literals import io +import os import json import pytest import requests @@ -13,6 +14,7 @@ from g...
Run spec up-to-date only on CI
py
diff --git a/userena/views.py b/userena/views.py index <HASH>..<HASH> 100644 --- a/userena/views.py +++ b/userena/views.py @@ -263,9 +263,6 @@ def signin(request, auth_form=AuthenticationForm, """ form = auth_form - # Sign a user out if he/she is at the signin page. - logout(request) - if request...
Removed unnecessary logout since django.contrib.auth.login will call request.session.flush() in case a new user logs in.
py
diff --git a/master/buildbot/reporters/github.py b/master/buildbot/reporters/github.py index <HASH>..<HASH> 100644 --- a/master/buildbot/reporters/github.py +++ b/master/buildbot/reporters/github.py @@ -165,7 +165,7 @@ class GitHubStatusPush(http.HttpStatusPushBase): ) if self.verbose:...
reporters: fix typo in github status push
py
diff --git a/adafruit_motor/servo.py b/adafruit_motor/servo.py index <HASH>..<HASH> 100644 --- a/adafruit_motor/servo.py +++ b/adafruit_motor/servo.py @@ -44,8 +44,8 @@ class _BaseServo: # pylint: disable-msg=too-few-public-methods self._pwm_out = pwm_out self.set_pulse_widths(min_pulse, max_pulse) ...
better name for fn to set pulse widths
py
diff --git a/organizations/admin.py b/organizations/admin.py index <HASH>..<HASH> 100644 --- a/organizations/admin.py +++ b/organizations/admin.py @@ -15,7 +15,7 @@ class OrganizationAdmin(admin.ModelAdmin): class OrganizationUserAdmin(admin.ModelAdmin): list_filter = ['organization'] - list_display = ['user...
Better list display for users (especially when there are multiple organizations associated with one user)
py
diff --git a/pydriller/utils/conf.py b/pydriller/utils/conf.py index <HASH>..<HASH> 100644 --- a/pydriller/utils/conf.py +++ b/pydriller/utils/conf.py @@ -185,6 +185,7 @@ class Conf: return len([x for x in arr if x is not None]) <= 1 def build_args(self): + single = self.get('single') fr...
single filter now uses a git filter as well, this is much faster
py
diff --git a/nodeconductor/iaas/tests/test_scenarios.py b/nodeconductor/iaas/tests/test_scenarios.py index <HASH>..<HASH> 100644 --- a/nodeconductor/iaas/tests/test_scenarios.py +++ b/nodeconductor/iaas/tests/test_scenarios.py @@ -76,12 +76,14 @@ class InstanceSecurityGroupsTest(test.APISimpleTestCase): securi...
added test for all security group fields - not only name
py
diff --git a/vyper/compiler/output.py b/vyper/compiler/output.py index <HASH>..<HASH> 100644 --- a/vyper/compiler/output.py +++ b/vyper/compiler/output.py @@ -98,6 +98,7 @@ def build_metadata_output(compiler_data: CompilerData) -> dict: def _to_dict(sig): ret = vars(sig) ret["return_type"] = str(...
fix: _lll_identifier caching (#<I>) since `_lll_identifier` is a cached property, it doesn't show up as a property until it is called for the first time. this forces it into the metadata output
py
diff --git a/coreweb/_closurebuild/compiler.py b/coreweb/_closurebuild/compiler.py index <HASH>..<HASH> 100644 --- a/coreweb/_closurebuild/compiler.py +++ b/coreweb/_closurebuild/compiler.py @@ -76,13 +76,15 @@ def get_deps_list(roots): return [join(root, "deps.js") for root in roots] -def compile(roots, namespac...
_closurebuild: add support for customizing externs
py
diff --git a/pyasn1/codec/ber/encoder.py b/pyasn1/codec/ber/encoder.py index <HASH>..<HASH> 100644 --- a/pyasn1/codec/ber/encoder.py +++ b/pyasn1/codec/ber/encoder.py @@ -33,9 +33,10 @@ class AbstractItemEncoder: while length: substrate = chr(length&0xff) + substrate lengt...
cache substrate length at encodeLength() for better performance
py
diff --git a/datajoint/version.py b/datajoint/version.py index <HASH>..<HASH> 100644 --- a/datajoint/version.py +++ b/datajoint/version.py @@ -1 +1 @@ -__version__ = "0.6.1" +__version__ = "0.7.0"
Increment version number to <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,6 @@ setup( license='MIT', packages=['centerline'], install_requires=[ - 'GDAL>=1.9.2', 'Fiona>=1.6.3' 'Shapely>=1.5.13', 'numpy>=1.10.4',
Remove GDAL as a dependency
py
diff --git a/authapi/urls.py b/authapi/urls.py index <HASH>..<HASH> 100644 --- a/authapi/urls.py +++ b/authapi/urls.py @@ -14,7 +14,14 @@ orgusers_router.register( r'users', views.OrganizationUsersViewSet, base_name='seedorganization-users') +permissions_router = routers.NestedSimpleRouter( + router, r't...
Add urls for adding and removing permissions from teams
py
diff --git a/goatools/wr_tbl_class.py b/goatools/wr_tbl_class.py index <HASH>..<HASH> 100644 --- a/goatools/wr_tbl_class.py +++ b/goatools/wr_tbl_class.py @@ -105,7 +105,8 @@ class WrXlsx(object): # If field "format_txt" is present, use value for formatting, but don't print. va...
If field value is empty (""), don't use fld2fmt, since it may be formatting a number e.g., "{:<I>e}"
py
diff --git a/tasks.py b/tasks.py index <HASH>..<HASH> 100644 --- a/tasks.py +++ b/tasks.py @@ -1,7 +1,7 @@ from os.path import join -from invoke import Collection -from invocations import docs as _docs, testing +from invoke import Collection, task +from invocations import docs as _docs d = 'sites' @@ -20,4 +20,...
Replace incorrect import of generic test runner w/ custom task
py
diff --git a/etrago/cluster/networkclustering.py b/etrago/cluster/networkclustering.py index <HASH>..<HASH> 100644 --- a/etrago/cluster/networkclustering.py +++ b/etrago/cluster/networkclustering.py @@ -550,7 +550,7 @@ def ehv_clustering(self): self.network.generators.control = "PV" busmap = busmap_fr...
Set with_time in ehv clustering to True
py
diff --git a/salt/modules/useradd.py b/salt/modules/useradd.py index <HASH>..<HASH> 100644 --- a/salt/modules/useradd.py +++ b/salt/modules/useradd.py @@ -87,6 +87,15 @@ def add(name, cmd += '-u {0} '.format(uid) if gid not in (None, ''): cmd += '-g {0} '.format(gid) + elif name in groups: + ...
check whether a usergroup is set explicitly as part of the groups parameter and set it as default group on systems with usergroups enabled
py
diff --git a/codemod/base.py b/codemod/base.py index <HASH>..<HASH> 100755 --- a/codemod/base.py +++ b/codemod/base.py @@ -940,10 +940,6 @@ def _parse_command_line(): help='Don\'t run normally. Instead, just print ' 'out number of times places in the codebase ' ...
removed --test argument since py.test is now the test runner
py
diff --git a/safe/postprocessors/building_type_postprocessor.py b/safe/postprocessors/building_type_postprocessor.py index <HASH>..<HASH> 100644 --- a/safe/postprocessors/building_type_postprocessor.py +++ b/safe/postprocessors/building_type_postprocessor.py @@ -10,9 +10,11 @@ __license__ = "GPL" __copyright__ = 'Copy...
Building type postprocessor needs to import tr.
py
diff --git a/firecloud/errors.py b/firecloud/errors.py index <HASH>..<HASH> 100644 --- a/firecloud/errors.py +++ b/firecloud/errors.py @@ -14,6 +14,5 @@ class FireCloudServerError(RuntimeError): def __init__(self, code, message): self.code = code self.message = message - emsg = str(code) +...
we now catch server errors in the outermost scope, and print the status code, so it doesn't need to be suffixed into the exception message body (allowing such to remain pure json and thus parsable to a dict)
py
diff --git a/git/test/test_index.py b/git/test/test_index.py index <HASH>..<HASH> 100644 --- a/git/test/test_index.py +++ b/git/test/test_index.py @@ -801,7 +801,7 @@ class TestIndex(TestBase): def test_add_a_file_with_wildcard_chars(self, rw_dir): # see issue #407 fp = os.path.join(rw_dir, '[.ex...
fixed unittest of issue #<I> for Python3
py
diff --git a/tests/test_client.py b/tests/test_client.py index <HASH>..<HASH> 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -119,7 +119,7 @@ def start_server(server, inst, device): exe = find_executable(server) cmd = ("{0} {1} -ORBendPoint giop:tcp::0 -nodb -dlist {2}" .format(ex...
In tests, make sure we close all FDs before we start DS Only needed in python 2 (in python 3 Popen closes fds by default)
py
diff --git a/holoviews/operation/element.py b/holoviews/operation/element.py index <HASH>..<HASH> 100644 --- a/holoviews/operation/element.py +++ b/holoviews/operation/element.py @@ -555,7 +555,7 @@ class histogram(Operation): if view.group != view.__class__.__name__: params['group'] = view.group ...
Ensure histogram operation does not raise deprecation warning
py
diff --git a/__init__.py b/__init__.py index <HASH>..<HASH> 100644 --- a/__init__.py +++ b/__init__.py @@ -17,24 +17,6 @@ See the License for the specific language governing permissions and limitations under the License. - - -create player profile - player name/ID - player type - if AI or bot - com...
- removed some planning docs that are now implemented
py
diff --git a/bcbio/wgbsseq/trimming.py b/bcbio/wgbsseq/trimming.py index <HASH>..<HASH> 100644 --- a/bcbio/wgbsseq/trimming.py +++ b/bcbio/wgbsseq/trimming.py @@ -66,7 +66,7 @@ def trimming(data): return [[data]] def _run_qc_fastqc(in_files, data, out_dir): - in_files = fastq.downsample(in_files, data=data, ...
Update arg list for downsample()
py
diff --git a/fenix.py b/fenix.py index <HASH>..<HASH> 100644 --- a/fenix.py +++ b/fenix.py @@ -113,7 +113,7 @@ class FenixAPISingleton(object): return self._request(url, params, method, headers = headers) def get_authentication_url(self): - url = self.base_url + self.oauth_endpoint + 'userdialog?client_id=' + s...
fixed missing / in the authentication url
py
diff --git a/gphoto2cffi/gphoto2.py b/gphoto2cffi/gphoto2.py index <HASH>..<HASH> 100644 --- a/gphoto2cffi/gphoto2.py +++ b/gphoto2cffi/gphoto2.py @@ -852,4 +852,4 @@ class Camera(object): def __del__(self): if self.__cam is not None: lib.gp_camera_exit(self.__cam, self._ctx) - lib...
Update gphoto2.py use `gp_camera_unref` instead of `gp_camera_free` as the latter is deprecated (<URL>).
py
diff --git a/littlechef/lib.py b/littlechef/lib.py index <HASH>..<HASH> 100644 --- a/littlechef/lib.py +++ b/littlechef/lib.py @@ -167,6 +167,7 @@ def _generate_metadata(path, cookbook_path, name): error_msg += "while executing knife to generate " error_msg += "metadata.json for {0}".f...
Print knife errors when they are unkown
py
diff --git a/tests/app/models.py b/tests/app/models.py index <HASH>..<HASH> 100644 --- a/tests/app/models.py +++ b/tests/app/models.py @@ -6,7 +6,6 @@ from taggit.models import TaggedItemBase from wagtail.wagtailadmin.edit_handlers import FieldPanel, PageChooserPanel from wagtail.wagtailcore.models import Page from ...
Do not register NewsItem as a snippet
py
diff --git a/telethon/tl/session.py b/telethon/tl/session.py index <HASH>..<HASH> 100644 --- a/telethon/tl/session.py +++ b/telethon/tl/session.py @@ -330,7 +330,9 @@ class Session: p_hash = p.access_hash if p_hash is not None: - username = getattr(e, 'username...
Fix username.lower() on instances with username field but None
py
diff --git a/metal/mmtl/trainer.py b/metal/mmtl/trainer.py index <HASH>..<HASH> 100644 --- a/metal/mmtl/trainer.py +++ b/metal/mmtl/trainer.py @@ -415,7 +415,7 @@ class MultitaskTrainer(object): ): self._validate_checkpoint_metric(tasks) # Set checkpoint_dir to log_dir/checkpoints/ - ...
Don't try to look up writer log_subdir if writer is None
py
diff --git a/spyder/widgets/mixins.py b/spyder/widgets/mixins.py index <HASH>..<HASH> 100644 --- a/spyder/widgets/mixins.py +++ b/spyder/widgets/mixins.py @@ -754,8 +754,12 @@ class SaveHistoryMixin(object): if self.history_filename not in self.HISTORY_FILENAMES: self.HISTORY_FILENAMES.append(sel...
Add handling from errors with the history.py file.
py
diff --git a/src/feat/web/httpclient.py b/src/feat/web/httpclient.py index <HASH>..<HASH> 100644 --- a/src/feat/web/httpclient.py +++ b/src/feat/web/httpclient.py @@ -81,6 +81,7 @@ class Protocol(http.BaseProtocol): def request(self, method, location, protocol=None, headers=None, body=None): + ...
Cancel and reset inactivity timeout correctly in http client.
py
diff --git a/djcelery/models.py b/djcelery/models.py index <HASH>..<HASH> 100644 --- a/djcelery/models.py +++ b/djcelery/models.py @@ -224,6 +224,8 @@ class PeriodicTask(models.Model): self.exchange = self.exchange or None self.routing_key = self.routing_key or None self.queue = self.queue or...
Reset last_run_at when periodic task disabled in the db. Closes ask/celery#<I>
py
diff --git a/tests/test-scout2.py b/tests/test-scout2.py index <HASH>..<HASH> 100644 --- a/tests/test-scout2.py +++ b/tests/test-scout2.py @@ -11,23 +11,18 @@ from opinel.utils.credentials import read_creds_from_environment_variables # class TestScout2Class: - # - # Setup - # - def setup(self): - ...
Move one-time setup into the setUpClass method
py
diff --git a/src/feat/web/httpclient.py b/src/feat/web/httpclient.py index <HASH>..<HASH> 100644 --- a/src/feat/web/httpclient.py +++ b/src/feat/web/httpclient.py @@ -151,7 +151,9 @@ class Protocol(http.BaseProtocol): def process_body_data(self, data): assert self._response is not None, "No response inf...
Fix problem with downloading long pages with httpclient.
py
diff --git a/ftr/version.py b/ftr/version.py index <HASH>..<HASH> 100644 --- a/ftr/version.py +++ b/ftr/version.py @@ -1,2 +1,2 @@ -version = '0.4.5' +version = '0.4.6'
version bump for <I>.
py
diff --git a/tests/test_decorators.py b/tests/test_decorators.py index <HASH>..<HASH> 100644 --- a/tests/test_decorators.py +++ b/tests/test_decorators.py @@ -13,7 +13,7 @@ def test_query_jwt_required(flask_app: Flask): response = request(test_cli, "query", - f'prote...
Remove f-strings for python backward compatibility
py
diff --git a/openpnm/utils/Workspace.py b/openpnm/utils/Workspace.py index <HASH>..<HASH> 100644 --- a/openpnm/utils/Workspace.py +++ b/openpnm/utils/Workspace.py @@ -65,7 +65,7 @@ class Workspace(dict): if Workspace.__instance__ is None: Workspace.__instance__ = dict.__new__(cls) cls...
Change default loglevel from <I> to <I> (warnings are now showed by default)
py
diff --git a/pyvisa/__init__.py b/pyvisa/__init__.py index <HASH>..<HASH> 100644 --- a/pyvisa/__init__.py +++ b/pyvisa/__init__.py @@ -19,7 +19,8 @@ import sys import pkg_resources import subprocess import ConfigParser -import vpp43 + +from . import vpp43 __version__ = "unknown" try: # try to grab the commit ve...
Changed version detection See #<I>
py
diff --git a/mimesis/schema.py b/mimesis/schema.py index <HASH>..<HASH> 100755 --- a/mimesis/schema.py +++ b/mimesis/schema.py @@ -14,7 +14,7 @@ from mimesis.exceptions import ( from mimesis.providers.generic import Generic from mimesis.typing import JSON, Seed -__all__ = ['AbstractField', 'Field', 'Schema'] +__all...
Remove AbstractField from schema.__all__
py