diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/deal/_imports.py b/deal/_imports.py index <HASH>..<HASH> 100644 --- a/deal/_imports.py +++ b/deal/_imports.py @@ -74,10 +74,10 @@ class DealLoader: """Get AST node and return a contract function """ if isinstance(node, ast.Call) and not node.keywords: - for arg in node...
python <I> support
py
diff --git a/salt/utils/cloud.py b/salt/utils/cloud.py index <HASH>..<HASH> 100644 --- a/salt/utils/cloud.py +++ b/salt/utils/cloud.py @@ -2801,7 +2801,8 @@ def list_cache_nodes_full(opts=None, provider=None, base=None): minion_id = fname[:-2] # strip '.p' from end of msgpack filename ...
Let msgpack handle the decoding since it encoded the data
py
diff --git a/pyIGRF/loadCoeffs.py b/pyIGRF/loadCoeffs.py index <HASH>..<HASH> 100644 --- a/pyIGRF/loadCoeffs.py +++ b/pyIGRF/loadCoeffs.py @@ -55,7 +55,7 @@ def get_coeffs(date): t = date - 2020.0 tc = 1.0 # pointer for last coefficient in pen-ultimate set of MF coefficients... - l...
fix a bug of getting wrong coefficients after <I>
py
diff --git a/data-processing/csv2mongo.py b/data-processing/csv2mongo.py index <HASH>..<HASH> 100644 --- a/data-processing/csv2mongo.py +++ b/data-processing/csv2mongo.py @@ -5,7 +5,7 @@ import sys import pymongo -if __name__ == '__main__': +def main(): # Parse command line arguments. parser = argparse.A...
Fixed bug with constructing list of all referenced fields. Placed scripting code into main() function, which makes it easier to do line-by-line profiling with, e.g., kernprof.py.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ requires = ['numpy', 'scipy', 'matplotlib <= 1.5.3', 'biopython >= 1.60', scripts = ['bin/LDA.py', 'bin/LDA_bubble.py', 'bin/PCoA.py', - 'bin/PCoA_bubble.py' + 'bin/P...
Fixes missing comma from requires array in setup.py
py
diff --git a/ceph_deploy/cli.py b/ceph_deploy/cli.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/cli.py +++ b/ceph_deploy/cli.py @@ -25,7 +25,11 @@ def parse_args(): ) for ep in pkg_resources.iter_entry_points('ceph_deploy.cli'): fn = ep.load() - p = sub.add_parser(ep.name, help=fn.__doc...
Show cli subcommand docstring as description, too. This makes it show not just in "ceph-deploy --help" listing, but also as second paragraph of "ceph-deploy foo --help".
py
diff --git a/etk/extractors/dbpedia_spotlight_extractor.py b/etk/extractors/dbpedia_spotlight_extractor.py index <HASH>..<HASH> 100644 --- a/etk/extractors/dbpedia_spotlight_extractor.py +++ b/etk/extractors/dbpedia_spotlight_extractor.py @@ -17,7 +17,8 @@ class DBpediaSpotlightExtractor(Extractor): Extrac...
final commit deleted try catch block. Added args
py
diff --git a/pyexchange/exchange2010/__init__.py b/pyexchange/exchange2010/__init__.py index <HASH>..<HASH> 100644 --- a/pyexchange/exchange2010/__init__.py +++ b/pyexchange/exchange2010/__init__.py @@ -172,8 +172,8 @@ class Exchange2010CalendarEvent(BaseExchangeCalendarEvent): elif self.recurrence == u'monthl...
Fixed max interval in monthly recurrence
py
diff --git a/tests/test_cli.py b/tests/test_cli.py index <HASH>..<HASH> 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1344,7 +1344,7 @@ def test_output_directory(runner, project, capsys): repo.git.add('--all') repo.index.commit('Created source directory') - cmd = ['run', 'cp', '-r', str(sour...
tests: fix cp args to work on Linux and macOS
py
diff --git a/asks/response_objects.py b/asks/response_objects.py index <HASH>..<HASH> 100644 --- a/asks/response_objects.py +++ b/asks/response_objects.py @@ -64,6 +64,12 @@ class BaseResponse: else: return self.body + async def __aenter__(self): + return self + + async def ...
make responses async context managers
py
diff --git a/tests/run/test_merge_chip_and_input.py b/tests/run/test_merge_chip_and_input.py index <HASH>..<HASH> 100644 --- a/tests/run/test_merge_chip_and_input.py +++ b/tests/run/test_merge_chip_and_input.py @@ -132,7 +132,7 @@ Count Chromosome Bin @pytest.fixture def sample2_dfs(): return [pd.read_table( ...
Change tests to use unicode strio for <I>
py
diff --git a/mss/darwin.py b/mss/darwin.py index <HASH>..<HASH> 100644 --- a/mss/darwin.py +++ b/mss/darwin.py @@ -6,7 +6,6 @@ # pylint: disable=import-error -from LaunchServices import kUTTypePNG from Quartz import ( NSURL, CGDisplayBounds, CGDisplayRotation, CGGetActiveDisplayList, CGImageDestinationA...
Mac: get rid of the LaunchServices module
py
diff --git a/cpp/tokenize.py b/cpp/tokenize.py index <HASH>..<HASH> 100644 --- a/cpp/tokenize.py +++ b/cpp/tokenize.py @@ -251,11 +251,20 @@ def get_tokens(source): continue if got_if: - condition = source[start + 4:i].lstrip() + begin = sour...
Exclude tokens inside __OBJC__
py
diff --git a/hanging_threads.py b/hanging_threads.py index <HASH>..<HASH> 100644 --- a/hanging_threads.py +++ b/hanging_threads.py @@ -86,7 +86,7 @@ def monitor(seconds_frozen, test_interval): log_died_thread(thread_id) # Process live threads. - time.sleep(test_interval/1000) + ...
Float division for py2 support
py
diff --git a/pypump/pypump.py b/pypump/pypump.py index <HASH>..<HASH> 100644 --- a/pypump/pypump.py +++ b/pypump/pypump.py @@ -157,7 +157,7 @@ class PyPump(object): data = to_unicode(data) if raw is False: - url = "{protocol}{server}/{endpoint}".format( + url = "{protocol}://{s...
Make sure protocol separator shows up in error messages
py
diff --git a/buildtools/cleanup-ghpages.py b/buildtools/cleanup-ghpages.py index <HASH>..<HASH> 100644 --- a/buildtools/cleanup-ghpages.py +++ b/buildtools/cleanup-ghpages.py @@ -13,7 +13,8 @@ urllib3.disable_warnings() def main(): try: - url = "https://api.github.com/repos/%s/ngeo/branches" % argv[1] + ...
Handle more branches in gh-pages (#<I>)
py
diff --git a/oct2py/core.py b/oct2py/core.py index <HASH>..<HASH> 100644 --- a/oct2py/core.py +++ b/oct2py/core.py @@ -405,7 +405,7 @@ class Oct2Py(object): timeout : float, optional Time to wait for response from Octave (per line). If not given, the instance `timeout` is used. - ...
typo missing "int" on "or str"
py
diff --git a/saltcloud/cloud.py b/saltcloud/cloud.py index <HASH>..<HASH> 100644 --- a/saltcloud/cloud.py +++ b/saltcloud/cloud.py @@ -770,6 +770,20 @@ class Cloud(object): for alias, drivers in self.opts['providers'].copy().iteritems(): for driver in drivers.copy().keys(): fun = ...
If the function cannot be found the driver most likely was not loaded.
py
diff --git a/tests/test_validators.py b/tests/test_validators.py index <HASH>..<HASH> 100644 --- a/tests/test_validators.py +++ b/tests/test_validators.py @@ -602,3 +602,15 @@ def test_validator_exclude_post_register( exclude=["missing", "app.missing", "app.args.missing"] ) settings.app.path = "/tmp/...
HOTFIX: Add coverage for 2 lines on validators.
py
diff --git a/pytest_cov.py b/pytest_cov.py index <HASH>..<HASH> 100644 --- a/pytest_cov.py +++ b/pytest_cov.py @@ -32,7 +32,7 @@ def pytest_addoption(parser): 'default: False') -@pytest.mark.try_last +@pytest.mark.tryfirst def pytest_load_initial_conftests(early_config, parser, args): ...
use tryfirst marker in load_initial_conftests
py
diff --git a/manticore/core/executor.py b/manticore/core/executor.py index <HASH>..<HASH> 100644 --- a/manticore/core/executor.py +++ b/manticore/core/executor.py @@ -332,6 +332,8 @@ class Executor(object): return self._getState(policy, order, fudge) def _getState(self, policy='random', order='max', fud...
short circuit _getState when queue is empty (#<I>)
py
diff --git a/SoftLayer/transports/rest.py b/SoftLayer/transports/rest.py index <HASH>..<HASH> 100644 --- a/SoftLayer/transports/rest.py +++ b/SoftLayer/transports/rest.py @@ -165,7 +165,7 @@ class RestTransport(object): :param request request: Request object """ - command = "curl -u $SL_USER:...
removing fancy colors for print_reproduceable, for now, might add in later when I figure out why the logger is printing 2x whenever I try to use it
py
diff --git a/warehouse/search/tasks.py b/warehouse/search/tasks.py index <HASH>..<HASH> 100644 --- a/warehouse/search/tasks.py +++ b/warehouse/search/tasks.py @@ -87,7 +87,7 @@ def _project_docs(db): .order_by(Release.name) ) - for release in windowed_query(release_data, Release.name, 1000): + for...
search reindex: larger batches to speed up indexing (#<I>) our new query is far more humble in memory consumption!
py
diff --git a/raven/contrib/flask/__init__.py b/raven/contrib/flask/__init__.py index <HASH>..<HASH> 100644 --- a/raven/contrib/flask/__init__.py +++ b/raven/contrib/flask/__init__.py @@ -87,8 +87,12 @@ class Sentry(object): }, ) - def init_app(self, app): + def init_app(self, app, dsn=None...
Small change to let you pass dsn into init_app
py
diff --git a/airflow/operators/bash_operator.py b/airflow/operators/bash_operator.py index <HASH>..<HASH> 100644 --- a/airflow/operators/bash_operator.py +++ b/airflow/operators/bash_operator.py @@ -1,6 +1,8 @@ from builtins import bytes +from builtins import str import logging +import sys from subprocess import P...
fix bytestring in xcom with python3
py
diff --git a/pymatgen/core/structure.py b/pymatgen/core/structure.py index <HASH>..<HASH> 100644 --- a/pymatgen/core/structure.py +++ b/pymatgen/core/structure.py @@ -2146,7 +2146,7 @@ class IMolecule(SiteCollection, MSONable): for site in sites: for sp, amt in site.species.items(): ...
Disable check on a line that is failing mypy.
py
diff --git a/fluentd/datadog_checks/fluentd/fluentd.py b/fluentd/datadog_checks/fluentd/fluentd.py index <HASH>..<HASH> 100644 --- a/fluentd/datadog_checks/fluentd/fluentd.py +++ b/fluentd/datadog_checks/fluentd/fluentd.py @@ -120,13 +120,13 @@ class Fluentd(AgentCheck): try: out, _, _ = get_subpr...
Reduce version warnings log level to DEBUG (#<I>)
py
diff --git a/twtxt/cli.py b/twtxt/cli.py index <HASH>..<HASH> 100644 --- a/twtxt/cli.py +++ b/twtxt/cli.py @@ -233,3 +233,7 @@ def quickstart(ctx): main = cli + +if __name__ == "__main__": + # execute only if run as a script + cli()
add __main__ runner Even with main=cli, I've needed this for local testing.
py
diff --git a/commands/bingo.py b/commands/bingo.py index <HASH>..<HASH> 100755 --- a/commands/bingo.py +++ b/commands/bingo.py @@ -25,7 +25,7 @@ def cmd(send, msg, args): 'password change', 'jholtom uses music cart', 'khakis', 'zan mods mc', 'fwilson\'s stuff stolen', 'zan feels inferior',...
Update bingo.py So it doesn't accidentally -- me.
py
diff --git a/symsynd/report.py b/symsynd/report.py index <HASH>..<HASH> 100644 --- a/symsynd/report.py +++ b/symsynd/report.py @@ -85,13 +85,14 @@ class ReportSymbolizer(object): with timedsection('findimages'): self.images = find_debug_images(dsym_paths, binary_images) - def symbolize_frame(...
Added support for disabling demangling
py
diff --git a/pidantic/pyon/pidpyon.py b/pidantic/pyon/pidpyon.py index <HASH>..<HASH> 100644 --- a/pidantic/pyon/pidpyon.py +++ b/pidantic/pyon/pidpyon.py @@ -218,6 +218,7 @@ class PIDanticPyon(PIDanticStateMachineBase): if not pyon_proc: # Process is missing, so exited event = "EVENT...
Set correct exit code on normal exit in pyon backend
py
diff --git a/src/build.py b/src/build.py index <HASH>..<HASH> 100755 --- a/src/build.py +++ b/src/build.py @@ -28,10 +28,10 @@ PYTHON = join(curdir, 'python-install', 'bin', 'python.host') BLACKLIST_PATTERNS = [ # code versionning - '.hg', - '.git', - '.bzr', - '.svn', + '^*.hg/*', + '^*.git/*...
add ^ for beeing able to match a file from start without the / in blacklist.txt
py
diff --git a/astropixie-widgets/astropixie_widgets/visual.py b/astropixie-widgets/astropixie_widgets/visual.py index <HASH>..<HASH> 100644 --- a/astropixie-widgets/astropixie_widgets/visual.py +++ b/astropixie-widgets/astropixie_widgets/visual.py @@ -495,7 +495,7 @@ WHERE p.clean = 1 and p.probPSF = 1 self.pf....
[EPO-<I>] Fix index in hover tool. * Use $ instead of @ since index is a built-in variable not part of the source. modified: astropixie-widgets/astropixie_widgets/visual.py
py
diff --git a/registration/models.py b/registration/models.py index <HASH>..<HASH> 100644 --- a/registration/models.py +++ b/registration/models.py @@ -195,7 +195,7 @@ class RegistrationProfile(models.Model): verbose_name_plural = _('registration profiles') class Admin: - list_display = ('__st...
str --> unicode. Not really a bug, but needed to be updated anyway
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,11 @@ from numpy.distutils.core import setup, Extension +import platform + +platform = platform.system() + +if platform == 'Windows': + import os + os.environ['VS90COMNTOOLS'] = os.environ['VS140COMNTOOLS'] # Set...
Modifying setup.py to automatically sets env vars in Windows for the combination Anaconda + Visual Studio <I>
py
diff --git a/markov.py b/markov.py index <HASH>..<HASH> 100644 --- a/markov.py +++ b/markov.py @@ -266,13 +266,15 @@ class Spatial_Markov: Notes ----- - Based on Rey (2001) [1]_. + Based on Rey (2001) [Rey2001]_. The shtest and chi2 tests should be used with caution as they are based on ...
starting to move to a central references file
py
diff --git a/pyamg/multilevel.py b/pyamg/multilevel.py index <HASH>..<HASH> 100644 --- a/pyamg/multilevel.py +++ b/pyamg/multilevel.py @@ -297,7 +297,7 @@ class multilevel_solver: dtype = self.levels[0].A.dtype def matvec(b): - return self.solve(b, maxiter=1, cycle=cycle) + ret...
the halting tolerance for AMG cycles now follows the strategy for the krylov methods
py
diff --git a/pymongo/codec_options.py b/pymongo/codec_options.py index <HASH>..<HASH> 100644 --- a/pymongo/codec_options.py +++ b/pymongo/codec_options.py @@ -64,3 +64,13 @@ class CodecOptions(object): def uuid_representation(self): """Read only property for uuid_subtype.""" return self.__uuid_re...
PYTHON-<I> - Add __eq__ and __ne__ methods to CodecOptions.
py
diff --git a/src/metpy/calc/thermo.py b/src/metpy/calc/thermo.py index <HASH>..<HASH> 100644 --- a/src/metpy/calc/thermo.py +++ b/src/metpy/calc/thermo.py @@ -305,7 +305,7 @@ def moist_lapse(pressure, temperature, reference_pressure=None): (mpconsts.nounit.Rd * t + mpconsts.nounit.Lv * rs) / (...
MNT: Change square back to use power rather than multiplication
py
diff --git a/ryu/__init__.py b/ryu/__init__.py index <HASH>..<HASH> 100644 --- a/ryu/__init__.py +++ b/ryu/__init__.py @@ -14,5 +14,5 @@ # limitations under the License. -version_info = (0, 2) +version_info = (1, 0) version = '.'.join(map(str, version_info))
Ryu <I> Bump the major version because: - Ryu fully support OpenFlow <I>, Nicira Extensions, and OpenFlow <I>. - Ryu was tested with various OpenFlow Hardware switches. - There is lots of improvement since the last release. Ryu is usable now so let's use the major version that implies so.
py
diff --git a/bhmm/mlhmm.py b/bhmm/mlhmm.py index <HASH>..<HASH> 100644 --- a/bhmm/mlhmm.py +++ b/bhmm/mlhmm.py @@ -96,6 +96,10 @@ class MLHMM(object): baumwelch = BaumWelchHMM(self.observations, self.model) self.model = baumwelch.fit() + print "maximum likelihood HMM:" + print str(self...
downsampling p5ab data to 1 ms
py
diff --git a/openpnm/topotools/topotools.py b/openpnm/topotools/topotools.py index <HASH>..<HASH> 100644 --- a/openpnm/topotools/topotools.py +++ b/openpnm/topotools/topotools.py @@ -1442,7 +1442,7 @@ def connect_pores(network, pores1, pores2, labels=[], add_conns=True): try: len(pores1[0]) len(p...
Made connect_pores (batch) to only work if elems in ps1/2 are list-like
py
diff --git a/adafruit_ads1x15/ads1x15.py b/adafruit_ads1x15/ads1x15.py index <HASH>..<HASH> 100644 --- a/adafruit_ads1x15/ads1x15.py +++ b/adafruit_ads1x15/ads1x15.py @@ -165,7 +165,7 @@ class ADS1x15: # Assign last pin read if in SINGLE mode or first sample in CONTINUOUS mode on this pin self._last_p...
Remove trailing whitespace for psf/black
py
diff --git a/pefile.py b/pefile.py index <HASH>..<HASH> 100644 --- a/pefile.py +++ b/pefile.py @@ -1037,11 +1037,14 @@ class SectionStructure(Structure): else: end = offset + self.SizeOfRawData - # PointerToRawData is not adjusted here as we might want to read any possible extra bytes - ...
fix parsing corrupted IAT
py
diff --git a/formlayout.py b/formlayout.py index <HASH>..<HASH> 100644 --- a/formlayout.py +++ b/formlayout.py @@ -539,6 +539,10 @@ class FormWidget(QWidget): else: dic = OrderedDict() for label, value in valuelist: + if label in dic.keys(): + ...
Add a Warning for dict-based serialization
py
diff --git a/benchbuild/utils/schema.py b/benchbuild/utils/schema.py index <HASH>..<HASH> 100644 --- a/benchbuild/utils/schema.py +++ b/benchbuild/utils/schema.py @@ -110,6 +110,7 @@ class GUID(TypeDecorator): """ impl = CHAR as_uuid = False + cache_ok = False def __init__(self, *args, as_uuid=...
fix(schema): silence SAWarning about caching (#<I>)
py
diff --git a/ca/django_ca/management/commands/sign_cert.py b/ca/django_ca/management/commands/sign_cert.py index <HASH>..<HASH> 100644 --- a/ca/django_ca/management/commands/sign_cert.py +++ b/ca/django_ca/management/commands/sign_cert.py @@ -87,7 +87,7 @@ the default values, options like --key-usage still override the...
pass keyUsage verbatim (should be a django_ca.extensions.KeyUsage by now)
py
diff --git a/painter/strip_color.py b/painter/strip_color.py index <HASH>..<HASH> 100644 --- a/painter/strip_color.py +++ b/painter/strip_color.py @@ -1,8 +1,15 @@ +import sys import re +if sys.version_info[0] == 2: # pragma: nocover + string_type = basestring +else: # pragma: nocover + string_type = str +...
Repaired strip color function to work correctly with unicode strings on Python 2.x
py
diff --git a/views.py b/views.py index <HASH>..<HASH> 100644 --- a/views.py +++ b/views.py @@ -15,8 +15,15 @@ class OAuthView(View): return False return True - def redirect_exception(self, exeption): - pass + def redirect_exception(self, exception): + from django.http...
View now redirects on exceptions correctly
py
diff --git a/insights/specs/__init__.py b/insights/specs/__init__.py index <HASH>..<HASH> 100644 --- a/insights/specs/__init__.py +++ b/insights/specs/__init__.py @@ -172,8 +172,8 @@ class Specs(SpecSet): ipv6_neigh = RegistryPoint() iscsiadm_m_session = RegistryPoint() jboss_domain_server_log = Registry...
Add multi_output=True for JBoss specs (#<I>)
py
diff --git a/pycdlib/pycdlib.py b/pycdlib/pycdlib.py index <HASH>..<HASH> 100644 --- a/pycdlib/pycdlib.py +++ b/pycdlib/pycdlib.py @@ -1124,8 +1124,7 @@ class PyCdlib(object): # The data we read off of the ISO was shorter than what we # expected. The ISO is corrupt, throw an e...
Simplify some uses of bytearray. We don't need to pack it and then unpack it; just switch it to a bytearray and index it directly from there.
py
diff --git a/netmiko/scp_handler.py b/netmiko/scp_handler.py index <HASH>..<HASH> 100644 --- a/netmiko/scp_handler.py +++ b/netmiko/scp_handler.py @@ -167,6 +167,17 @@ class FileTransfer(object): else: return True + def show_remote_md5(self, base_cmd='verify /md5', delay_factor=8): + '...
Added function to show remote md5
py
diff --git a/zipline/pipeline/loaders/blaze.py b/zipline/pipeline/loaders/blaze.py index <HASH>..<HASH> 100644 --- a/zipline/pipeline/loaders/blaze.py +++ b/zipline/pipeline/loaders/blaze.py @@ -1,6 +1,6 @@ """Blaze integration with the pipeline API. """ -from __future__ import division +from __future__ import divisi...
BUG: python2 implicit import is the worst feature ever
py
diff --git a/tests/plugin_tests/test_session_resumption_plugin.py b/tests/plugin_tests/test_session_resumption_plugin.py index <HASH>..<HASH> 100644 --- a/tests/plugin_tests/test_session_resumption_plugin.py +++ b/tests/plugin_tests/test_session_resumption_plugin.py @@ -11,7 +11,7 @@ from tests.openssl_server import Mo...
Try fixing resumption test
py
diff --git a/xclim/atmos/_precip.py b/xclim/atmos/_precip.py index <HASH>..<HASH> 100644 --- a/xclim/atmos/_precip.py +++ b/xclim/atmos/_precip.py @@ -110,12 +110,14 @@ precip_accumulation = Pr( standard_name=lambda **kw: "lwe_thickness_of_snowfall_amount" if kw["phase"] == "solid" else "lwe_thickness_of...
Small fix to the metadata of precipaccumulation
py
diff --git a/thinc/about.py b/thinc/about.py index <HASH>..<HASH> 100644 --- a/thinc/about.py +++ b/thinc/about.py @@ -1,2 +1,2 @@ -__version__ = "8.0.0a6" +__version__ = "8.0.0a7" __release__ = True
Set version to <I>a7
py
diff --git a/salt/modules/apt.py b/salt/modules/apt.py index <HASH>..<HASH> 100644 --- a/salt/modules/apt.py +++ b/salt/modules/apt.py @@ -827,7 +827,7 @@ def get_repo(repo, **kwargs): ''' Display a repo from the sources.list / sources.list.d - The repo passwd in needs to be a complete repo entry. + T...
Trivial typo fix (passwd->passed)
py
diff --git a/pyrogram/client.py b/pyrogram/client.py index <HASH>..<HASH> 100644 --- a/pyrogram/client.py +++ b/pyrogram/client.py @@ -397,6 +397,9 @@ class Client(Methods, Scaffold): @parse_mode.setter def parse_mode(self, parse_mode: Optional[str] = "combined"): + if isinstance(parse_mode, str): + ...
Make parse_mode always lowercase (#<I>) * Make parse_mode always lowercase * Update client.py
py
diff --git a/raccoon/lib/web_app.py b/raccoon/lib/web_app.py index <HASH>..<HASH> 100644 --- a/raccoon/lib/web_app.py +++ b/raccoon/lib/web_app.py @@ -22,7 +22,12 @@ class WebApplicationScanner: self.target_dir = "/".join(log_file.split("/")[:-1]) self.logger = Logger(log_file) - def _detect_cms(...
applied minimal cms detection re-try mechaism
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -396,7 +396,7 @@ class InstallPyCryptoWindowsWheel(Command): call_subprocess(call_arguments) def uri_to_resource(resource_file): - ### Returns the URI for a resouce + ### Returns the URI for a resource ...
Option to compile the Salt-Minion installer offline
py
diff --git a/lib/drizzlepac/createMedian.py b/lib/drizzlepac/createMedian.py index <HASH>..<HASH> 100644 --- a/lib/drizzlepac/createMedian.py +++ b/lib/drizzlepac/createMedian.py @@ -206,7 +206,10 @@ def _median(imageObjectList, paramDict): # read in WCS from first single drizzle image to use as WCS for medi...
Fix a bug in the code due to which astrodrizzle would crash at the "Create Median" step when run in memory git-svn-id: <URL>
py
diff --git a/peyotl/manip.py b/peyotl/manip.py index <HASH>..<HASH> 100644 --- a/peyotl/manip.py +++ b/peyotl/manip.py @@ -191,7 +191,7 @@ def merge_otus_and_trees(nexson_blob): break if match_otu is not None: id_to_replace_id[oid] = match_o...
bug fix in code for merging OTU groups
py
diff --git a/openquake/calculators/disaggregation.py b/openquake/calculators/disaggregation.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/disaggregation.py +++ b/openquake/calculators/disaggregation.py @@ -485,7 +485,8 @@ class DisaggregationCalculator(base.HazardCalculator): shp = (self.N, len(se...
Better monitoring [skip CI]
py
diff --git a/airflow/cli/commands/dag_command.py b/airflow/cli/commands/dag_command.py index <HASH>..<HASH> 100644 --- a/airflow/cli/commands/dag_command.py +++ b/airflow/cli/commands/dag_command.py @@ -165,7 +165,7 @@ def set_is_paused(is_paused, args): dag = DagModel.get_dagmodel(args.dag_id) if not dag: ...
Fix typo in CLI error (#<I>)
py
diff --git a/grove/tomography/tomography.py b/grove/tomography/tomography.py index <HASH>..<HASH> 100644 --- a/grove/tomography/tomography.py +++ b/grove/tomography/tomography.py @@ -28,6 +28,8 @@ import logging from collections import namedtuple, OrderedDict from itertools import product as cartesian_product +from...
Added pragma to ensure tomography circuits are not compiled
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,11 @@ import sys +import io from setuptools import find_packages, setup, Command EXCLUDE_FROM_PACKAGES = [] -readme = open('README.rst', 'r', encoding = "utf-8").read() +readme = io.open('README.rst', 'r', en...
import io for read with encoding on python <I> For compatibility,` import io`, for using `io.read` on both python <I> and python 3
py
diff --git a/bcbio/pipeline/run_info.py b/bcbio/pipeline/run_info.py index <HASH>..<HASH> 100644 --- a/bcbio/pipeline/run_info.py +++ b/bcbio/pipeline/run_info.py @@ -766,8 +766,8 @@ def _add_algorithm_defaults(algorithm): "tools_off": [], "tools_on": [], "qc": [], - ...
Explicitly set nomap_ variables to defaults Avoid issues with unset nomap and later integer conversion.
py
diff --git a/aioftp/common.py b/aioftp/common.py index <HASH>..<HASH> 100644 --- a/aioftp/common.py +++ b/aioftp/common.py @@ -16,12 +16,22 @@ __all__ = ( "AbstractAsyncLister", "AsyncListerMixin", "async_enterable", + "DEFAULT_PORT", + "DEFAULT_USER", + "DEFAULT_PASSWORD", + "DEFAULT_ACCOUNT...
default host, port, user, password, account as constants
py
diff --git a/src/txkube/testing/integration.py b/src/txkube/testing/integration.py index <HASH>..<HASH> 100644 --- a/src/txkube/testing/integration.py +++ b/src/txkube/testing/integration.py @@ -51,7 +51,11 @@ def matches_metadata(expected): metadata=MatchesStructure( namespace=Equals(expected.nam...
Avoid comparing labels for now It doesn't work. Issue referenced.
py
diff --git a/grimoire/django/tracked/admin.py b/grimoire/django/tracked/admin.py index <HASH>..<HASH> 100644 --- a/grimoire/django/tracked/admin.py +++ b/grimoire/django/tracked/admin.py @@ -307,7 +307,7 @@ class TrackedLiveReportingMixin(ModelAdmin): return self.render_report_error(request, _('Report not ...
Allowing report period to be empty, so that the report included the full queryset
py
diff --git a/river/services/transition.py b/river/services/transition.py index <HASH>..<HASH> 100644 --- a/river/services/transition.py +++ b/river/services/transition.py @@ -28,7 +28,7 @@ class TransitionService(object): workflow_object.save() # Next states should be PENDING back again if t...
next states are all PENDING when it is approved
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -367,11 +367,6 @@ if on_rtd: 'sksurv.svm._prsvm', 'sksurv.tree._criterion'] - MOCK_VERSIONS = { - 'pandas': '0.25.0', - 'sklearn': '0.22.0', - } - from unittest.mock imp...
DOCS: Don't mock __version__ Not needed anymore.
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -33,6 +33,10 @@ if BACKEND == 'postgresql': elif BACKEND == 'mysql': database_class = MySQLDatabase database_name = 'peewee_test' +elif BACKEND == 'apsw': + from extras.apsw_ext import APSWDatabase + database_...
Allow the test runner to use apsw backend...it blows up pretty bad at the moment
py
diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py index <HASH>..<HASH> 100644 --- a/spyder/app/mainwindow.py +++ b/spyder/app/mainwindow.py @@ -385,15 +385,28 @@ class MainWindow(QMainWindow): last_plugin = self.last_plugin try: # New API - if (last_plugin is not...
Main Window: Use layouts.maximize_action to maximize/unmaximize plugins This allows us to correctly set its state when calling switch_to_plugin from plugins programmatically.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -102,7 +102,8 @@ def write_version(filename=os.path.join(*['airflow', with open(filename, 'w') as a: a.write(text) -async = [ + +async_packages = [ 'greenlet>=0.4.9', 'eventlet>= 0.9.7', 'gevent>...
[AIRFLOW-<I>] Rename async variable in setup.py for Python <I> compatibility Closes #<I> from Perados/rename-async-to- async_packages-in-setup
py
diff --git a/pyxmpp/stanzaprocessor.py b/pyxmpp/stanzaprocessor.py index <HASH>..<HASH> 100644 --- a/pyxmpp/stanzaprocessor.py +++ b/pyxmpp/stanzaprocessor.py @@ -410,7 +410,7 @@ class StanzaProcessor: """Set a handler for <presence/> stanzas. :Parameters: - - `typ`: presence type. `None`...
- a little docstring improvement
py
diff --git a/tools/c7n_gcp/c7n_gcp/client.py b/tools/c7n_gcp/c7n_gcp/client.py index <HASH>..<HASH> 100644 --- a/tools/c7n_gcp/c7n_gcp/client.py +++ b/tools/c7n_gcp/c7n_gcp/client.py @@ -42,6 +42,7 @@ from retrying import retry from six.moves import http_client from six.moves.urllib.error import URLError +HTTPLIB_C...
gcp - allow setting httplib2 ca bundle from env var (#<I>)
py
diff --git a/notifications_python_client/version.py b/notifications_python_client/version.py index <HASH>..<HASH> 100644 --- a/notifications_python_client/version.py +++ b/notifications_python_client/version.py @@ -1 +1 @@ -__version__ = '1.3.0' +__version__ = '1.4.0'
Minor version bump to <I> New feature: accept API keys in combined format
py
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index <HASH>..<HASH> 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -439,7 +439,8 @@ def read_sql( con : SQLAlchemy connectable, str, or sqlite3 connection Using SQLAlchemy makes it possible to use any DB supported by that library. If a DB...
DOC: add note on str cons to read_sql (#<I>)
py
diff --git a/pyblish_qml/app.py b/pyblish_qml/app.py index <HASH>..<HASH> 100644 --- a/pyblish_qml/app.py +++ b/pyblish_qml/app.py @@ -272,7 +272,7 @@ in order to bypass validation. thread.start() util.echo("Debug server created successfully.") - util.echo("Listening on port: %s" ...
Improving verbosity in debug mode
py
diff --git a/dfttopif/parsers/vasp.py b/dfttopif/parsers/vasp.py index <HASH>..<HASH> 100644 --- a/dfttopif/parsers/vasp.py +++ b/dfttopif/parsers/vasp.py @@ -16,7 +16,7 @@ class VaspParser(DFTParser): def test_if_from(self, directory): # Check whether it has an INCAR file - return os.path.is...
Use OUTCAR, not INCAR, to detect VASP files It happens that I have a large number of calculations that were published with an OUTCAR and without an INCAR. This change makes it possible for me to easily parse those files and, given that no settings are read from the INCAR, the change will not effect the function of the...
py
diff --git a/pytest_asyncio/__init__.py b/pytest_asyncio/__init__.py index <HASH>..<HASH> 100644 --- a/pytest_asyncio/__init__.py +++ b/pytest_asyncio/__init__.py @@ -1,2 +1,2 @@ """The main point for importing pytest-asyncio items.""" -__version__ = "0.11.0" +__version__ = "0.12.0.dev0"
<I> open for business!
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -31,5 +31,8 @@ setup( 'Programming Language :: Python', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Pro...
supporting up to python<I>
py
diff --git a/git/objects/base.py b/git/objects/base.py index <HASH>..<HASH> 100644 --- a/git/objects/base.py +++ b/git/objects/base.py @@ -7,6 +7,7 @@ from git.util import LazyMixin, join_path_native, stream_copy, bin_to_hex import gitdb.typ as dbtyp import os.path as osp +from typing import Optional # noqa: F401 ...
improvement: teach mypy that Object.type is not always supposed to be None
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -49,6 +49,7 @@ setup( 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', ]...
Update setup.py classifier with python<I> As we now build with python<I> in the CI line (See tox.ini).
py
diff --git a/src/foremast/slacknotify/slack_notification.py b/src/foremast/slacknotify/slack_notification.py index <HASH>..<HASH> 100644 --- a/src/foremast/slacknotify/slack_notification.py +++ b/src/foremast/slacknotify/slack_notification.py @@ -20,6 +20,6 @@ class SlackNotification: channel = '#deployments-{...
bug fix for slack notify not finding channel
py
diff --git a/src/infi/recipe/buildout_logging/__init__.py b/src/infi/recipe/buildout_logging/__init__.py index <HASH>..<HASH> 100644 --- a/src/infi/recipe/buildout_logging/__init__.py +++ b/src/infi/recipe/buildout_logging/__init__.py @@ -5,8 +5,8 @@ import sys import logging import time try: - import StringIO -e...
TRIVIAL Specified exactly what exception is thrown (ImportError) rather than catching all when importing
py
diff --git a/pyshop/models.py b/pyshop/models.py index <HASH>..<HASH> 100644 --- a/pyshop/models.py +++ b/pyshop/models.py @@ -521,7 +521,7 @@ class Release(Base): license = Column(UnicodeText()) description = Column(UnicodeText()) keywords = Column(Unicode(255)) - platform = Column(Unicode(24)) + ...
Make platform field bigger Fix the mirroring of setproctitle on posgresql
py
diff --git a/unstdlib/html.py b/unstdlib/html.py index <HASH>..<HASH> 100644 --- a/unstdlib/html.py +++ b/unstdlib/html.py @@ -50,11 +50,12 @@ def get_cache_buster(src_path, method='importtime'): Example:: - >>> get_cache_buster('html.py') is _IMPORT_TIME + >>> SRC_PATH = os.path.join(os.path.dir...
Fix test to not be path-relative.
py
diff --git a/warehouse/packaging/tasks.py b/warehouse/packaging/tasks.py index <HASH>..<HASH> 100644 --- a/warehouse/packaging/tasks.py +++ b/warehouse/packaging/tasks.py @@ -17,6 +17,7 @@ from itertools import product import pip_api from google.cloud.bigquery import LoadJobConfig +from packaging.utils import canon...
Use normalized names (#<I>)
py
diff --git a/intake/catalog/tests/util.py b/intake/catalog/tests/util.py index <HASH>..<HASH> 100644 --- a/intake/catalog/tests/util.py +++ b/intake/catalog/tests/util.py @@ -11,11 +11,12 @@ def intake_server(request): # Start a catalog server on nonstandard port port = 7483 - cmd = 'python -m intake.cat...
Remove use of shell when starting catalog server in tests so termination on Linux works
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,5 +22,5 @@ setup(name='igv', 'jupyter', 'notebook>=4.2.0', ], - package_data={'igv': ['static/igv-jupyter.js', 'static/igvjs/*']}, + package_data={'igv': ['static/igv-jupyter.js', 'st...
Small change to setup.py that should fix a bug with PIP deploys when using Python <I>.
py
diff --git a/virtualbox/__init__.py b/virtualbox/__init__.py index <HASH>..<HASH> 100644 --- a/virtualbox/__init__.py +++ b/virtualbox/__init__.py @@ -1,28 +1,8 @@ -import vboxapi -from virtualbox import library - +from extends import library __doc__ = library.__doc__ - -manager = vboxapi.VirtualBoxManager(None, N...
now easier to extend arbitary interfaces
py
diff --git a/py3status/__init__.py b/py3status/__init__.py index <HASH>..<HASH> 100755 --- a/py3status/__init__.py +++ b/py3status/__init__.py @@ -206,11 +206,15 @@ def transform(j, **kwargs): - update the 'time' object so that it's updated at INTERVAL seconds - update the 'run_watch' objects so that we rely on the...
fix time transformation thx to Lujeni
py
diff --git a/mbed/mbed.py b/mbed/mbed.py index <HASH>..<HASH> 100644 --- a/mbed/mbed.py +++ b/mbed/mbed.py @@ -1544,7 +1544,7 @@ def import_(url, path=None, ignore=False, depth=None, protocol=None, top=True): error("Directory \"%s\" is not empty. Please ensure that the destination folder is empty." % repo.path...
Prominently display repository protocol and URL that is used for import/add (clone)
py
diff --git a/src/python/pants/option/global_options.py b/src/python/pants/option/global_options.py index <HASH>..<HASH> 100644 --- a/src/python/pants/option/global_options.py +++ b/src/python/pants/option/global_options.py @@ -36,6 +36,7 @@ from pants.util.docutil import bracketed_docs_url from pants.util.logging impo...
set default user-agent header on gRPC requests with Pants version (#<I>) Set the user agent to `pants/VERSION` by default for gRPC requests.
py
diff --git a/djstripe/admin.py b/djstripe/admin.py index <HASH>..<HASH> 100644 --- a/djstripe/admin.py +++ b/djstripe/admin.py @@ -445,7 +445,7 @@ class CustomerAdmin(StripeModelAdmin): "coupon", "balance", ) - list_select_related = ("subscriber", "default_source", "coupon") + list_filter...
Overrode CustomerAdmin.get_queryset() to prefetch Customer model FKs
py
diff --git a/broqer/core.py b/broqer/core.py index <HASH>..<HASH> 100644 --- a/broqer/core.py +++ b/broqer/core.py @@ -128,7 +128,9 @@ class StatefulPublisher(Publisher): return disposable def get(self): - return self._state + if self._state is not UNINITIALIZED: + return self._...
fixing uninitialized state when using .get for StatefulPublisher
py
diff --git a/gooey/python_bindings/config_generator.py b/gooey/python_bindings/config_generator.py index <HASH>..<HASH> 100644 --- a/gooey/python_bindings/config_generator.py +++ b/gooey/python_bindings/config_generator.py @@ -8,10 +8,10 @@ from gooey.gui.util.quoting import quote def create_from_parser(parser, source...
Fix unbuffered flag regression introduced in <I>b4
py
diff --git a/AdvancedHTMLParser/constants.py b/AdvancedHTMLParser/constants.py index <HASH>..<HASH> 100644 --- a/AdvancedHTMLParser/constants.py +++ b/AdvancedHTMLParser/constants.py @@ -22,9 +22,6 @@ INVISIBLE_ROOT_TAG_START = '<%s>' %(INVISIBLE_ROOT_TAG,) # End tag used on invisible root tag INVISIBLE_ROOT_TAG_END ...
Remove 'value' attribute link from all tags in lieu of just the tags by which the standard defines it should be present
py